mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 698185 - convert coordinates properly when processing bidi runs in canvas text. r=dbaron
This commit is contained in:
parent
68f0a4ccc2
commit
fd6a33cff6
@ -2771,7 +2771,7 @@ struct NS_STACK_CLASS nsCanvasBidiProcessor : public nsBidiPresUtils::BidiProces
|
||||
virtual void DrawText(nscoord xOffset, nscoord width)
|
||||
{
|
||||
gfxPoint point = mPt;
|
||||
point.x += xOffset * mAppUnitsPerDevPixel;
|
||||
point.x += xOffset;
|
||||
|
||||
// offset is given in terms of left side of string
|
||||
if (mTextRun->IsRightToLeft()) {
|
||||
|
@ -2975,7 +2975,7 @@ struct NS_STACK_CLASS nsCanvasBidiProcessorAzure : public nsBidiPresUtils::BidiP
|
||||
virtual void DrawText(nscoord xOffset, nscoord width)
|
||||
{
|
||||
gfxPoint point = mPt;
|
||||
point.x += xOffset * mAppUnitsPerDevPixel;
|
||||
point.x += xOffset;
|
||||
|
||||
// offset is given in terms of left side of string
|
||||
if (mTextRun->IsRightToLeft()) {
|
||||
|
Loading…
Reference in New Issue
Block a user