diff --git a/eeshow/gfx/cro.c b/eeshow/gfx/cro.c index e4ac88b..1cbfdfa 100644 --- a/eeshow/gfx/cro.c +++ b/eeshow/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; }