refactor: remove unecessary scope block

This commit is contained in:
2026-04-11 21:27:59 -04:00
parent a3728bed78
commit 588ad3e525
+6 -8
View File
@@ -168,14 +168,12 @@ uint8_t skele_video_init(skele_video_config_t cfg)
SDL_SetTexturePalette(texture, sdl_pal); SDL_SetTexturePalette(texture, sdl_pal);
{ SDL_Color black[SKELE_PALETTE_COLORS];
SDL_Color black[SKELE_PALETTE_COLORS]; uint16_t i;
uint16_t i; memset(black, 0, sizeof(black));
memset(black, 0, sizeof(black)); for (i = 0; i < SKELE_PALETTE_COLORS; i++)
for (i = 0; i < SKELE_PALETTE_COLORS; i++) black[i].a = 255;
black[i].a = 255; SDL_SetPaletteColors(sdl_pal, black, 0, SKELE_PALETTE_COLORS);
SDL_SetPaletteColors(sdl_pal, black, 0, SKELE_PALETTE_COLORS);
}
SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST); SDL_SetTextureScaleMode(texture, SDL_SCALEMODE_NEAREST);
SDL_SetRenderVSync(renderer, 1); SDL_SetRenderVSync(renderer, 1);