mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out changeset 61baabe617c9 (bug 1191539) because of regressions like bug 1205863 and probably bug 1206209.
This commit is contained in:
parent
84c12e413c
commit
fcb4e1315b
@ -961,8 +961,8 @@ GetDisplayPortFromMarginsData(nsIContent* aContent,
|
|||||||
// Round-out the display port to the nearest alignment (tiles)
|
// Round-out the display port to the nearest alignment (tiles)
|
||||||
float x = alignmentX * floor(screenRect.x / alignmentX);
|
float x = alignmentX * floor(screenRect.x / alignmentX);
|
||||||
float y = alignmentY * floor(screenRect.y / alignmentY);
|
float y = alignmentY * floor(screenRect.y / alignmentY);
|
||||||
float w = alignmentX * ceil(screenRect.width / alignmentX);
|
float w = alignmentX * ceil(screenRect.width / alignmentX + 1);
|
||||||
float h = alignmentY * ceil(screenRect.height / alignmentY);
|
float h = alignmentY * ceil(screenRect.height / alignmentY + 1);
|
||||||
screenRect = ScreenRect(x, y, w, h);
|
screenRect = ScreenRect(x, y, w, h);
|
||||||
screenRect -= scrollPosScreen;
|
screenRect -= scrollPosScreen;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user