mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
eeshow/gfx/cro.c (xc): mixed up offset calculation
Apparently, this had no major effect.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user