From dd51787e07a307fb0aa82f0ac36086690b4aeb89 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 8 Sep 2022 15:53:25 +0100 Subject: [PATCH] Fix SDL_PIXELFORMAT_INDEX1LSB test case --- test/testautomation_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testautomation_surface.c b/test/testautomation_surface.c index 63d4c294d..9b38066ef 100644 --- a/test/testautomation_surface.c +++ b/test/testautomation_surface.c @@ -693,7 +693,7 @@ surface_testOverflow(void *arg) SDLTest_AssertCheck(surface != NULL, "17px * 1 bit per px fits in 3 bytes: %s", surface != NULL ? "(success)" : SDL_GetError()); SDL_FreeSurface(surface); - surface = SDL_CreateRGBSurfaceFrom(buf, 7, 1, 1, 3, 0, 0, 0, 0); + surface = SDL_CreateRGBSurfaceFrom(buf, 17, 1, 1, 3, 0, 0, 0, 0); SDLTest_AssertCheck(surface != NULL, "17px * 1 bit per px fits in 3 bytes: %s", surface != NULL ? "(success)" : SDL_GetError()); SDL_FreeSurface(surface);