From 3fd0502cb90ce5c88bf29244959f2b44bdd99e2f Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 30 Aug 2012 16:21:00 -0300 Subject: [PATCH] magnifier: Round the uiGroup to integer positions This removes the jaggies from text, and other sorts of things. https://bugzilla.gnome.org/show_bug.cgi?id=683073 --- js/ui/magnifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 4a144b26a..91263b71d 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -1325,7 +1325,7 @@ const ZoomRegion = new Lang.Class({ this._mouseActor.set_scale(this._xMagFactor, this._yMagFactor); let [x, y] = this._screenToViewPort(0, 0); - this._uiGroupClone.set_position(x, y); + this._uiGroupClone.set_position(Math.round(x), Math.round(y)); this._updateMousePosition(); },