Clean up and match Chocolate (#2041)

This commit is contained in:
gendlin 2024-11-22 02:58:55 -05:00 committed by GitHub
parent d24604a62e
commit 54068a57b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -657,11 +657,13 @@ void I_StartFrame(void)
static void UpdateRender(void)
{
// Blit from the paletted 8-bit screen buffer to the intermediate
// 32-bit RGBA buffer and update the intermediate texture with the
// contents of the RGBA buffer.
SDL_LockTexture(texture, &blit_rect, &argbbuffer->pixels,
&argbbuffer->pitch);
&argbbuffer->pitch);
SDL_LowerBlit(screenbuffer, &blit_rect, argbbuffer, &blit_rect);
SDL_UnlockTexture(texture);
SDL_RenderClear(renderer);
@ -1767,7 +1769,7 @@ static void CreateSurfaces(int w, int h)
// [FG] create intermediate ARGB frame buffer
argbbuffer = SDL_CreateRGBSurfaceWithFormatFrom(
NULL, w, h, 8, 0, SDL_PIXELFORMAT_ARGB8888);
NULL, w, h, 0, 0, SDL_PIXELFORMAT_ARGB8888);
I_SetPalette(W_CacheLumpName("PLAYPAL", PU_CACHE));