summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-05-03 00:51:50 +0200
committerkdx <kikoodx@paranoici.org>2023-05-03 00:51:50 +0200
commitcccddfc6d78afaeac27e6283d62b20b81373ddb9 (patch)
tree98a1c834c3d132e2763faf1ebc9e30aa940738c7
parent62b3fdad21f3dfb03aa2e4eb5173a1dac68cd518 (diff)
downloadpx-cccddfc6d78afaeac27e6283d62b20b81373ddb9.tar.gz
allow to overwrite PX_WIDTH/HEIGHT
-rw-r--r--src/px.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/px.h b/src/px.h
index d7f7dee..f413bdc 100644
--- a/src/px.h
+++ b/src/px.h
@@ -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;