summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amiga/bitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index dfa2ba52c..05f5a8bd4 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -443,8 +443,8 @@ static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,
if(nsoption_bool(scale_quality)) flags |= COMPFLAG_SrcFilter;
CompositeTags(COMPOSITE_Src, tbm, scaledbm,
- COMPTAG_ScaleX,COMP_FLOAT_TO_FIX(width/bitmap->width),
- COMPTAG_ScaleY,COMP_FLOAT_TO_FIX(height/bitmap->height),
+ COMPTAG_ScaleX,COMP_FLOAT_TO_FIX((float)width/bitmap->width),
+ COMPTAG_ScaleY,COMP_FLOAT_TO_FIX((float)height/bitmap->height),
COMPTAG_Flags, flags,
COMPTAG_DestX,0,
COMPTAG_DestY,0,