]> Dogcows Code - chaz/openbox/blobdiff - render/image.c
changes
[chaz/openbox] / render / image.c
index 1c79d6941182ff63855a9dc44e495edb2ebbcc65..10aa9b13017cc89ab630a39b87c04930a8c4ea4e 100644 (file)
@@ -1,4 +1,4 @@
-/* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
+/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
 
    image.c for the Openbox window manager
    Copyright (c) 2003        Ben Jansens
@@ -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.021877 seconds and 4 git commands to generate.