[gnome-shell] magnifier: Round the uiGroup to integer positions
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] magnifier: Round the uiGroup to integer positions
- Date: Fri, 31 Aug 2012 19:44:22 +0000 (UTC)
commit 3fd0502cb90ce5c88bf29244959f2b44bdd99e2f
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Aug 30 16:21:00 2012 -0300
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js
index 4a144b2..91263b7 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();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]