diff options
Diffstat (limited to 'src/fb.h')
| -rw-r--r-- | src/fb.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,7 +8,8 @@ #define PW_FB_WIDTH 128 #define PW_FB_HEIGHT 128 #define PW_FB_BYTES_PER_PIXEL 4 -#define PW_FB_SIZE (PW_FB_WIDTH * PW_FB_HEIGHT * PW_FB_BYTES_PER_PIXEL) +#define PW_FB_STRIDE (PW_FB_WIDTH * PW_FB_BYTES_PER_PIXEL) +#define PW_FB_SIZE (PW_FB_STRIDE * PW_FB_HEIGHT) /** * A PICO-8 framebuffer. @@ -55,7 +56,7 @@ bool pw_fb_coordinates(struct pw_framebuffer *fb, float wx, float wy, /** * Locks the framebuffer for writing. */ -uint8_t *pw_fb_lock(struct pw_framebuffer *fb); +uint8_t *pw_fb_lock(struct pw_framebuffer *fb, size_t *pitch); /** * Unlocks the framebuffer for writing. |
