Bug 1695466 - Fix rounding in GdkEventCoordsToDevicePixels r=stransky

Differential Revision: https://phabricator.services.mozilla.com/D110028
This commit is contained in:
tom
2021-03-30 06:44:56 +00:00
parent c6c30a4923
commit 28adc84134

View File

@@ -7917,7 +7917,7 @@ int nsWindow::GdkCoordToDevicePixels(gint coord) {
LayoutDeviceIntPoint nsWindow::GdkEventCoordsToDevicePixels(gdouble x,
gdouble y) {
gint scale = GdkScaleFactor();
return LayoutDeviceIntPoint::Round(x * scale, y * scale);
return LayoutDeviceIntPoint::Floor(x * scale, y * scale);
}
LayoutDeviceIntPoint nsWindow::GdkPointToDevicePixels(GdkPoint point) {