diff options
Diffstat (limited to 'src/px.c')
-rw-r--r-- | src/px.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -128,7 +128,7 @@ pxPset(int x, int y, PxCol c) return; pxzbuf[x + y * PX_WIDTH] = pxz; - pxbuf[x + y * PX_WIDTH] = pxpal[c].pal ? pxpal[c].pal : c; + pxbuf[x + y * PX_WIDTH] = pxpal[c].pal ? (pxpal[c].pal - 1) : c; } uint8_t |