Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorolpc <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)
commitc72410bccd1ab46dc14c7fc54c4d64f869d4775a (patch)
tree77a67527077b4a725300fbee3e491da9ca4bc9d6
parent7cf23ecfe07a17e766c2b104f2d5b39ec028a27f (diff)
Canvas bugfix.
-rw-r--r--src/canvas.h4
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)