Fix formatting in blending.c

This commit is contained in:
Ahmed Lyas 2026-05-20 02:53:17 +00:00 committed by GitHub
parent f242ea6a2b
commit c4158a0b5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ static SDL_Texture *blue_rect_texture = NULL;
static Uint8 alpha = 255;
static SDL_BlendMode blend_modes[] = {
/*The default no blending: dstRGB := srcRGB
dstA := srcA */
dstA := srcA */
SDL_BLENDMODE_NONE,
/* Alpha blending: dstRGB := srcA * srcRGB + (1 - srcA) * dstRGB
@ -174,7 +174,7 @@ SDL_AppResult SDL_AppIterate(void *appstate)
SDL_FRect grid = { x, y, GRID_SIZE, GRID_SIZE };
bool dark = (int)(x/GRID_SIZE + y/GRID_SIZE) % 2;
if (dark) SDL_SetRenderDrawColor(renderer, 70, 70, 70, 255); /* Darker color */
if (dark) SDL_SetRenderDrawColor(renderer, 70, 70, 70, 255); /* Darker color */
else SDL_SetRenderDrawColor(renderer, 110, 110, 110, 255); /* Lighter color */
SDL_RenderFillRect(renderer, &grid);