Added missing -1 to PIXEL_MAX macro

This commit is contained in:
Ari Lemmetti 2015-01-15 15:36:40 +02:00
parent 465f718eeb
commit 4382c2f088

View file

@ -44,7 +44,7 @@
#define BIT_DEPTH 8
#define PIXEL_MIN 0
#define PIXEL_MAX (1 << BIT_DEPTH)
#define PIXEL_MAX ((1 << BIT_DEPTH) - 1)
#if BIT_DEPTH == 8
typedef uint8_t pixel;