From e4a2d15171e60a9a2da336c70256d2d4cb27f97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 1 Aug 2017 17:57:46 -0500 Subject: [PATCH] display: Code cleanups Compare integers with integer literals, and update docs https://bugzilla.gnome.org/show_bug.cgi?id=765011 --- src/core/display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index a228ad68a..1c80b3939 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -1447,7 +1447,7 @@ find_highest_logical_monitor_scale (MetaBackend *backend, ClutterRect cursor_rect; GList *logical_monitors; GList *l; - int highest_scale = 0.0; + int highest_scale = 0; cursor_rect = meta_cursor_renderer_calculate_rect (cursor_renderer, cursor_sprite); @@ -1485,7 +1485,7 @@ root_cursor_prepare_at (MetaCursorSpriteXcursor *sprite_xcursor, int scale; scale = find_highest_logical_monitor_scale (backend, cursor_sprite); - if (scale != 0.0) + if (scale != 0) { meta_cursor_sprite_xcursor_set_theme_scale (sprite_xcursor, scale); meta_cursor_sprite_set_texture_scale (cursor_sprite, 1.0 / scale); @@ -3475,7 +3475,7 @@ meta_display_get_primary_monitor (MetaDisplay *display) * @monitor: the monitor number * @geometry: (out): location to store the monitor geometry * - * Stores the location and size of the indicated monitor in @geometry. + * Stores the location and size of the indicated @monitor in @geometry. */ void meta_display_get_monitor_geometry (MetaDisplay *display,