From 79277ed07ca0e6f41c8de855dc5ad3beb3283c2c Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 30 Sep 2007 02:49:27 +0000
Subject: [PATCH] Fix last commit

---
 src/conio/sdl_con.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c
index d03f9c88bf..b6cde0ddfe 100644
--- a/src/conio/sdl_con.c
+++ b/src/conio/sdl_con.c
@@ -1147,17 +1147,19 @@ int sdl_video_event_thread(void *data)
 									for(y=0; y<rect->height; y++) {
 										for(x=0; x<rect->width; x++) {
 											int palette_entry;
-											r.x=x*vstat.scaling;
-											r.y=y*vstat.scaling;
 											r.w=vstat.scaling;
 											r.h=vstat.scaling;
 											palette_entry=rect->data[y*rect->width+x];
 #ifdef OFFSCREEN_FILL
+											r.x=x*vstat.scaling;
+											r.y=y*vstat.scaling;
 											sdl.FillRect(new_rect, &r, sdl.MapRGB(new_rect->format
 												, dac_default[vstat.palette[palette_entry]].red
 												, dac_default[vstat.palette[palette_entry]].green
 												, dac_default[vstat.palette[palette_entry]].blue));
 #else
+											r.x=(x+rect.x)*vstat.scaling;
+											r.y=(y+rect.y)*vstat.scaling;
 											sdl.FillRect(win, &r, sdl.MapRGB(win->format
 												, dac_default[vstat.palette[palette_entry]].red
 												, dac_default[vstat.palette[palette_entry]].green
-- 
GitLab