From 1d1028adefa55c44750dbec89499cda5e9149613 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 23 Nov 2008 04:23:34 +0000 Subject: [PATCH] Improve overlay mode's window scaling Add a layout for 5 windows and slightly increase the scale factor for 3 and 4 windows. Patch from Natan Yellin http://bugzilla.gnome.org/show_bug.cgi?id=561947 svn path=/trunk/; revision=81 --- js/ui/overlay.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui/overlay.js b/js/ui/overlay.js index 5c8a60fea..e15ed991f 100644 --- a/js/ui/overlay.js +++ b/js/ui/overlay.js @@ -41,8 +41,9 @@ const WINDOW_OPACITY = 0.9 * 255; const POSITIONS = { 1: [[0.5, 0.5, 0.8]], 2: [[0.25, 0.5, 0.4], [0.75, 0.5, 0.4]], - 3: [[0.2, 0.33, 0.3], [0.5, 0.67, 0.3], [0.8, 0.33, 0.3]], - 4: [[0.25, 0.25, 0.3], [0.75, 0.25, 0.3], [0.75, 0.75, 0.3], [0.25, 0.75, 0.3]] + 3: [[0.25, 0.25, 0.33], [0.75, 0.25, 0.33], [0.5, 0.75, 0.33]], + 4: [[0.25, 0.25, 0.33], [0.75, 0.25, 0.33], [0.75, 0.75, 0.33], [0.25, 0.75, 0.33]], + 5: [[0.165, 0.25, 0.28], [0.495, 0.25, 0.28], [0.825, 0.25, 0.28], [0.25, 0.75, 0.4], [0.75, 0.75, 0.4]] }; function Sideshow(width) {