Browse Source

Fix SDL_PIXELFORMAT_INDEX1LSB test case

Cameron Cawley 2 years ago
parent
commit
dd51787e07
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testautomation_surface.c

+ 1 - 1
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",
     SDLTest_AssertCheck(surface != NULL, "17px * 1 bit per px fits in 3 bytes: %s",
                         surface != NULL ? "(success)" : SDL_GetError());
                         surface != NULL ? "(success)" : SDL_GetError());
     SDL_FreeSurface(surface);
     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",
     SDLTest_AssertCheck(surface != NULL, "17px * 1 bit per px fits in 3 bytes: %s",
                         surface != NULL ? "(success)" : SDL_GetError());
                         surface != NULL ? "(success)" : SDL_GetError());
     SDL_FreeSurface(surface);
     SDL_FreeSurface(surface);