diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/canvas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/canvas.h b/src/canvas.h index 61c045f..e06b1e8 100644 --- a/src/canvas.h +++ b/src/canvas.h @@ -1181,8 +1181,8 @@ public: h = (height-7)*4-y; // Translate origin to output location. - int src_x = (x - scroll_x); - int src_y = (y - scroll_y); + int src_x = (x - scroll_x)/4; + int src_y = (y - scroll_y)/4; int csy = src_y; for (int cy = y; cy < y+h; cy += 4) |