diff options
author | olpc <olpc@xo-05-26-CC.localdomain> | 2008-11-29 20:55:19 (GMT) |
---|---|---|
committer | olpc <olpc@xo-05-26-CC.localdomain> | 2008-11-29 20:55:19 (GMT) |
commit | c72410bccd1ab46dc14c7fc54c4d64f869d4775a (patch) | |
tree | 77a67527077b4a725300fbee3e491da9ca4bc9d6 | |
parent | 7cf23ecfe07a17e766c2b104f2d5b39ec028a27f (diff) |
Canvas bugfix.
-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) |