diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-10-15 03:59:35 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-10-15 03:59:35 +0000 |
| commit | 740c5b2a20d5110435d0874f8cc6a4c9dfd14777 (patch) | |
| tree | 41dd6d301a1da504b6bc9ec7b4cccea2efd16423 /render/image.c | |
| parent | 8085f3490fb5790d15fcb47988bbc24e17467725 (diff) | |
consistant glib type usage
Diffstat (limited to 'render/image.c')
| -rw-r--r-- | render/image.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
