diff options
author | Krow Savcik <krow@savcik.xyz> | 2024-02-13 18:25:28 +0200 |
---|---|---|
committer | Krow Savcik <krow@savcik.xyz> | 2024-02-13 18:25:28 +0200 |
commit | 669f50e2d6fc55751e0f3afb4d1bdf633446b169 (patch) | |
tree | a9bf97687d483cd53ee77529b9377480382b703e /src/canvas.c | |
parent | 8b8e1cab080dfea106bebe9d4eeecf5812182e94 (diff) |
improved: changed colors to hexadecimal where posssible
Diffstat (limited to 'src/canvas.c')
-rw-r--r-- | src/canvas.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |