]> Dogcows Code - chaz/openbox/blobdiff - render/image.c
consistant glib type usage
[chaz/openbox] / render / image.c
index 09d94f17dd7c19c3b4520b3be57c26f318a36b42..10aa9b13017cc89ab630a39b87c04930a8c4ea4e 100644 (file)
@@ -133,10 +133,10 @@ void RrImageDraw(RrPixel32 *target, RrTextureRGBA *rgba,
 
     /* keep the ratio */
     dw = area->width;
-    dh = (int)(dw * ((double)sh / sw));
+    dh = (gint)(dw * ((gdouble)sh / sw));
     if (dh > area->height) {
         dh = area->height;
-        dw = (int)(dh * ((double)sw / sh));
+        dw = (gint)(dh * ((gdouble)sw / sh));
     }
 
     if (sw != dw || sh != dh) {
This page took 0.027041 seconds and 4 git commands to generate.