From 669f50e2d6fc55751e0f3afb4d1bdf633446b169 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Tue, 13 Feb 2024 18:25:28 +0200 Subject: improved: changed colors to hexadecimal where posssible --- src/canvas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/canvas.c') diff --git a/src/canvas.c b/src/canvas.c index 3a016d7..f3ee6ec 100644 --- a/src/canvas.c +++ b/src/canvas.c @@ -117,14 +117,14 @@ canvas_init(uint w, uint h, void *ren) for (j = 0; j < h; j += 16) { dest.y = j; if (((j+i)>>4)&1) - SDL_SetRenderDrawColor(ren, 225, 225, 225, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0xffffffff)); else SDL_SetRenderDrawColor(ren, 125, 125, 125, 255); SDL_RenderFillRect(ren, &dest); } } SDL_SetRenderTarget(ren, c->half_pres); - SDL_SetRenderDrawColor(ren, 0, 0, 0, 0); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0)); SDL_RenderClear(ren); SDL_SetRenderTarget(ren, NULL); -- cgit v1.2.3