[gnome-settings-daemon] media-keys: always round the render coordinates for media icons
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: always round the render coordinates for media icons
- Date: Mon, 1 Aug 2011 15:07:29 +0000 (UTC)
commit a03c072a8241d4d481ee94e5e1ffd829e85271f5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Aug 1 17:06:10 2011 +0200
media-keys: always round the render coordinates for media icons
This ensures the pixbuf is always rendered as crisp as possible.
plugins/media-keys/gsd-media-keys-window.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-window.c b/plugins/media-keys/gsd-media-keys-window.c
index f0d026b..1eb288b 100644
--- a/plugins/media-keys/gsd-media-keys-window.c
+++ b/plugins/media-keys/gsd-media-keys-window.c
@@ -421,8 +421,8 @@ draw_action_volume (GsdMediaKeysWindow *window,
volume_box_width = icon_box_width;
volume_box_height = round (window_height * 0.05);
- icon_box_x0 = (window_width - icon_box_width) / 2;
- icon_box_y0 = (window_height - icon_box_height - volume_box_height) / 2 - volume_box_height;
+ icon_box_x0 = round ((window_width - icon_box_width) / 2);
+ icon_box_y0 = round ((window_height - icon_box_height - volume_box_height) / 2 - volume_box_height);
volume_box_x0 = round (icon_box_x0);
volume_box_y0 = round (icon_box_height + icon_box_y0) + volume_box_height;
@@ -558,8 +558,8 @@ draw_action_custom (GsdMediaKeysWindow *window,
bright_box_width = round (icon_box_width);
bright_box_height = round (window_height * 0.05);
- icon_box_x0 = (window_width - icon_box_width) / 2;
- icon_box_y0 = (window_height - icon_box_height - bright_box_height) / 2 - bright_box_height;
+ icon_box_x0 = round ((window_width - icon_box_width) / 2);
+ icon_box_y0 = round ((window_height - icon_box_height - bright_box_height) / 2 - bright_box_height);
bright_box_x0 = round (icon_box_x0);
bright_box_y0 = round (icon_box_height + icon_box_y0) + bright_box_height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]