[retro-gtk/drop-cairo: 2/2] pixdata: Drop CAIRO_DISPLAY in a macro name



commit 618068eb2bc2c91569d40ea21730809e9185e139
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Sun May 24 14:45:24 2020 +0200

    pixdata: Drop CAIRO_DISPLAY in a macro name
    
    This renames RETRO_CAIRO_DISPLAY_Y_DPI to simply RETRO_Y_DPI, which is
    simpler and better fit the macro.

 retro-gtk/retro-pixdata.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/retro-gtk/retro-pixdata.c b/retro-gtk/retro-pixdata.c
index 4f1b04c..fa40efd 100644
--- a/retro-gtk/retro-pixdata.c
+++ b/retro-gtk/retro-pixdata.c
@@ -26,7 +26,7 @@ G_DEFINE_BOXED_TYPE (RetroPixdata, retro_pixdata, retro_pixdata_copy, retro_pixd
  * Because gdk-pixbuf saves dpi as integer we have to multiply it by big enough
  * number to represent aspect ratio precisely.
  */
-#define RETRO_CAIRO_DISPLAY_Y_DPI (1000000.0f)
+#define RETRO_Y_DPI (1000000.0f)
 
 /* Private */
 
@@ -364,9 +364,9 @@ retro_pixdata_to_pixbuf (RetroPixdata *self)
 
   /* x-dpi and y-dpi are deprecated, retro_pixbuf_get_aspect_ratio() and
    * retro_pixbuf_set_aspect_ratio() should be used instead. */
-  x_dpi = self->aspect_ratio * RETRO_CAIRO_DISPLAY_Y_DPI;
+  x_dpi = self->aspect_ratio * RETRO_Y_DPI;
   x_dpi_string = g_strdup_printf ("%g", x_dpi);
-  y_dpi_string = g_strdup_printf ("%g", RETRO_CAIRO_DISPLAY_Y_DPI);
+  y_dpi_string = g_strdup_printf ("%g", RETRO_Y_DPI);
   gdk_pixbuf_set_option (pixbuf, "x-dpi", x_dpi_string);
   gdk_pixbuf_set_option (pixbuf, "y-dpi", y_dpi_string);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]