aboutsummaryrefslogtreecommitdiff
path: root/tests/sdl_canvas.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sdl_canvas.c')
-rw-r--r--tests/sdl_canvas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sdl_canvas.c b/tests/sdl_canvas.c
index 97cd1348..10044ff4 100644
--- a/tests/sdl_canvas.c
+++ b/tests/sdl_canvas.c
@@ -38,7 +38,7 @@ int main(int argc, char **argv) {
// fill stuff
SDL_Rect rect = { 200, 200, 175, 125 };
- SDL_FillRect(screen, &rect, 0x2222ffff);
+ SDL_FillRect(screen, &rect, SDL_MapRGBA(screen->format, 0x22, 0x22, 0xff, 0xff));
SDL_Flip(screen);