From 740c5b2a20d5110435d0874f8cc6a4c9dfd14777 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 15 Oct 2003 03:59:35 +0000 Subject: consistant glib type usage --- render/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/image.c') diff --git a/render/image.c b/render/image.c index 09d94f17..10aa9b13 100644 --- a/render/image.c +++ b/render/image.c @@ -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) { -- cgit v1.2.3