diff options
author | kdx <kikoodx@paranoici.org> | 2023-05-03 00:51:50 +0200 |
---|---|---|
committer | kdx <kikoodx@paranoici.org> | 2023-05-03 00:51:50 +0200 |
commit | cccddfc6d78afaeac27e6283d62b20b81373ddb9 (patch) | |
tree | 98a1c834c3d132e2763faf1ebc9e30aa940738c7 | |
parent | 62b3fdad21f3dfb03aa2e4eb5173a1dac68cd518 (diff) | |
download | px-cccddfc6d78afaeac27e6283d62b20b81373ddb9.tar.gz |
allow to overwrite PX_WIDTH/HEIGHT
-rw-r--r-- | src/px.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -3,10 +3,12 @@ #include <stdint.h> #include <stdbool.h> -enum { - PX_WIDTH = 128, - PX_HEIGHT = 128 -}; +#ifndef PX_WIDTH +#define PX_WIDTH 128 +#endif +#ifndef PX_HEIGHT +#define PX_HEIGHT 128 +#endif typedef uint8_t PxCol; |