Thu, 10 Feb 2022 22:18:50 -0600
Convert the usage of GdkRGBA in the whiteboard to use floats instead of doubles
Testing Done:
Compiled and verified there was no mention of `GdkRGBA` in the logs for `pidginwhiteboard.c`
Reviewed at https://reviews.imfreedom.org/r/1300/
| pidgin/gtkwhiteboard.c | file | annotate | diff | comparison | revisions |
--- a/pidgin/gtkwhiteboard.c Thu Feb 10 22:02:53 2022 -0600 +++ b/pidgin/gtkwhiteboard.c Thu Feb 10 22:18:50 2022 -0600 @@ -94,7 +94,7 @@ color->red = ((color_rgb >> 16) & 0xFF) / 255.0f; color->green = ((color_rgb >> 8) & 0xFF) / 255.0f; color->blue = (color_rgb & 0xFF) / 255.0f; - color->alpha = 1.0; + color->alpha = 1.0f; } static gboolean @@ -113,7 +113,7 @@ PidginWhiteboard *gtkwb = (PidginWhiteboard*)data; cairo_t *cr; GtkAllocation allocation; - GdkRGBA white = {1.0, 1.0, 1.0, 1.0}; + GdkRGBA white = {1.0f, 1.0f, 1.0f, 1.0f}; if (gtkwb->cr) { cairo_destroy(gtkwb->cr); @@ -461,7 +461,7 @@ GtkWidget *drawing_area = gtkwb->drawing_area; cairo_t *cr = gtkwb->cr; GtkAllocation allocation; - GdkRGBA white = {1.0, 1.0, 1.0, 1.0}; + GdkRGBA white = {1.0f, 1.0f, 1.0f, 1.0f}; gtk_widget_get_allocation(drawing_area, &allocation);