summaryrefslogtreecommitdiff
path: root/plugins/media-keys
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/media-keys')
-rw-r--r--plugins/media-keys/msd-media-keys-window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/media-keys/msd-media-keys-window.c b/plugins/media-keys/msd-media-keys-window.c
index 912b2b8..3f87bd0 100644
--- a/plugins/media-keys/msd-media-keys-window.c
+++ b/plugins/media-keys/msd-media-keys-window.c
@@ -489,8 +489,8 @@ draw_action_volume (MsdMediaKeysWindow *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) / 2;
+ icon_box_x0 = round ((window_width - icon_box_width) / 2);
+ icon_box_y0 = round ((window_height - icon_box_height) / 2);
volume_box_x0 = round (icon_box_x0);
volume_box_y0 = round (window_height - icon_box_y0 / 2 - volume_box_height);
@@ -625,8 +625,8 @@ draw_action_custom (MsdMediaKeysWindow *window,
label_box_width = round (window_width);
label_box_height = round (window_height * 0.175);
- icon_box_x0 = (window_width - icon_box_width) / 2;
- icon_box_y0 = (window_height - icon_box_height) / 2;
+ icon_box_x0 = round ((window_width - icon_box_width) / 2);
+ icon_box_y0 = round ((window_height - icon_box_height) / 2);
label_box_y0 = round (window_height - label_box_height / 2);
#if 0