From adfb52d12d5ff6e32a7f2a29664500c2e79934de Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 20 Aug 2016 09:19:35 -0300 Subject: [PATCH] eeshow/gfx/cro.c (xc): mixed up offset calculation Apparently, this had no major effect. --- eeshow/gfx/cro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }