mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-25 13:55:36 -04:00
Clean up and match Chocolate (#2041)
This commit is contained in:
parent
d24604a62e
commit
54068a57b0
@ -657,11 +657,13 @@ void I_StartFrame(void)
|
|||||||
|
|
||||||
static void UpdateRender(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,
|
SDL_LockTexture(texture, &blit_rect, &argbbuffer->pixels,
|
||||||
&argbbuffer->pitch);
|
&argbbuffer->pitch);
|
||||||
|
|
||||||
SDL_LowerBlit(screenbuffer, &blit_rect, argbbuffer, &blit_rect);
|
SDL_LowerBlit(screenbuffer, &blit_rect, argbbuffer, &blit_rect);
|
||||||
|
|
||||||
SDL_UnlockTexture(texture);
|
SDL_UnlockTexture(texture);
|
||||||
|
|
||||||
SDL_RenderClear(renderer);
|
SDL_RenderClear(renderer);
|
||||||
@ -1767,7 +1769,7 @@ static void CreateSurfaces(int w, int h)
|
|||||||
// [FG] create intermediate ARGB frame buffer
|
// [FG] create intermediate ARGB frame buffer
|
||||||
|
|
||||||
argbbuffer = SDL_CreateRGBSurfaceWithFormatFrom(
|
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));
|
I_SetPalette(W_CacheLumpName("PLAYPAL", PU_CACHE));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user