Bug 1695466 - Fix rounding in GdkEventCoordsToDevicePixels r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110028
This commit is contained in:
@@ -7917,7 +7917,7 @@ int nsWindow::GdkCoordToDevicePixels(gint coord) {
|
|||||||
LayoutDeviceIntPoint nsWindow::GdkEventCoordsToDevicePixels(gdouble x,
|
LayoutDeviceIntPoint nsWindow::GdkEventCoordsToDevicePixels(gdouble x,
|
||||||
gdouble y) {
|
gdouble y) {
|
||||||
gint scale = GdkScaleFactor();
|
gint scale = GdkScaleFactor();
|
||||||
return LayoutDeviceIntPoint::Round(x * scale, y * scale);
|
return LayoutDeviceIntPoint::Floor(x * scale, y * scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
LayoutDeviceIntPoint nsWindow::GdkPointToDevicePixels(GdkPoint point) {
|
LayoutDeviceIntPoint nsWindow::GdkPointToDevicePixels(GdkPoint point) {
|
||||||
|
|||||||
Reference in New Issue
Block a user