Merge commit '0e1d19cf680fc51635b3c52a9afa33fe03881bb5' into main

This commit is contained in:
Sam Lantinga 2022-10-23 16:35:03 -07:00
commit 491d594976
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ SDL_CalculateShapeBitmap(SDL_WindowShapeMode mode,SDL_Surface *shape,Uint8* bitm
if(SDL_MUSTLOCK(shape))
SDL_LockSurface(shape);
SDL_memset(bitmap, 0, shape->h * bytes_per_scanline);
SDL_memset(bitmap, 0, shape->h * bytes_per_scanline);
for(y = 0;y<shape->h;y++) {
bitmap_scanline = bitmap + y * bytes_per_scanline;