[gnome-applets/wip-geiger-warnings: 54/57] window-picker: fix loss of precision warning
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets/wip-geiger-warnings: 54/57] window-picker: fix loss of precision warning
- Date: Sat, 4 Apr 2020 21:14:59 +0000 (UTC)
commit a5225ac8817eb37f0ad65cb0d44925d52d5dac7c
Author: Sebastian Geiger <sbastig gmx net>
Date: Sat Apr 4 12:59:28 2020 +0200
window-picker: fix loss of precision warning
gnome-applets/window-picker/task-item.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gnome-applets/window-picker/task-item.c b/gnome-applets/window-picker/task-item.c
index 6e27f68a0..45fb31af6 100644
--- a/gnome-applets/window-picker/task-item.c
+++ b/gnome-applets/window-picker/task-item.c
@@ -398,8 +398,8 @@ static gboolean task_item_draw (
gdk_cairo_set_source_pixbuf (
cr,
pbuf,
- (area.x + (area.width - gdk_pixbuf_get_width (pbuf)) / 2),
- (area.y + (area.height - gdk_pixbuf_get_height (pbuf)) / 2)
+ (area.x + (area.width - gdk_pixbuf_get_width (pbuf)) / 2.0),
+ (area.y + (area.height - gdk_pixbuf_get_height (pbuf)) / 2.0)
);
} else { /* create grayscale pixbuf */
GdkPixbuf *desat = gdk_pixbuf_new (
@@ -422,8 +422,8 @@ static gboolean task_item_draw (
gdk_cairo_set_source_pixbuf (
cr,
desat,
- (area.x + (area.width - gdk_pixbuf_get_width (desat)) / 2),
- (area.y + (area.height - gdk_pixbuf_get_height (desat)) / 2));
+ (area.x + (area.width - gdk_pixbuf_get_width (desat)) / 2.0),
+ (area.y + (area.height - gdk_pixbuf_get_height (desat)) / 2.0));
g_object_unref (desat);
}
if (!item->mouse_over && attention) { /* urgent */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]