mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-17 21:46:15 +02:00
eeshow/gfx/cro.c (xc): mixed up offset calculation
Apparently, this had no major effect.
This commit is contained in:
parent
b289869f2a
commit
adfb52d12d
@ -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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user