summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-20 09:19:35 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-20 09:19:35 -0300
commit656106975a0571a424c4bb3a8c184cd3ce2788de (patch)
tree964c176591a3a08a6574fa5b27815c1551ea6ffb /gfx
parent0bdd68538b7485241666567a14efc3f50677f5de (diff)
downloadeeshow-656106975a0571a424c4bb3a8c184cd3ce2788de.tar.gz
eeshow-656106975a0571a424c4bb3a8c184cd3ce2788de.tar.bz2
eeshow-656106975a0571a424c4bb3a8c184cd3ce2788de.zip
eeshow/gfx/cro.c (xc): mixed up offset calculation
Apparently, this had no major effect.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index e4ac88b..1cbfdfa 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -74,7 +74,7 @@ static inline int cx(const struct cro_ctx *cc, int x)
static inline int xc(const struct cro_ctx *cc, int x)
{
- return (x - cc->xe) / cc->scale - cc->xe;
+ return (x - cc->xo) / cc->scale - cc->xe;
}