summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 9876a8a77..9c7f29d71 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3689,8 +3689,8 @@ void ami_do_redraw_tiled(struct gui_window_2 *gwin, bool busy,
BLITA_SrcY, 0,
BLITA_DestType, BLITT_RASTPORT,
BLITA_Dest, gwin->win->RPort,
- BLITA_DestX, bbox->Left + (int)((x * gwin->bw->scale) - sx),
- BLITA_DestY, bbox->Top + (int)((y * gwin->bw->scale) - sy),
+ BLITA_DestX, bbox->Left + (int)((x - sx) * gwin->bw->scale),
+ BLITA_DestY, bbox->Top + (int)((y - sy) * gwin->bw->scale),
BLITA_Width, (int)(clip.x1),
BLITA_Height, (int)(clip.y1),
TAG_DONE);