[gnome-shell] osdWindow: Fix blurriness at certain resolutions



commit 53361757360239f98cd9ceb562f6695b4b3c18f3
Author: Silvère Latchurié <slatchurie gmail com>
Date:   Fri May 26 17:46:35 2017 +0200

    osdWindow: Fix blurriness at certain resolutions
    
    The y position wasn't rounded, leading to some blurriness at vertical
    resolutions that aren't a multiple of 4 (e.g. 1050).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=782011

 js/ui/osdWindow.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js
index f27f48965..a73912413 100644
--- a/js/ui/osdWindow.js
+++ b/js/ui/osdWindow.js
@@ -204,7 +204,7 @@ var OsdWindow = new Lang.Class({
 
         let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
         this._icon.icon_size = popupSize / (2 * scaleFactor);
-        this._box.translation_y = monitor.height / 4;
+        this._box.translation_y = Math.round(monitor.height / 4);
         this._boxConstraint.minSize = popupSize;
     }
 });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]