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 | |
parent | 8b8e1cab080dfea106bebe9d4eeecf5812182e94 (diff) |
improved: changed colors to hexadecimal where posssible
Diffstat (limited to 'src')
-rw-r--r-- | src/canvas.c | 4 | ||||
-rw-r--r-- | src/cdraw.c | 2 | ||||
-rw-r--r-- | src/ui.c | 12 |
3 files changed, 9 insertions, 9 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); diff --git a/src/cdraw.c b/src/cdraw.c index 74335d4..ecec5de 100644 --- a/src/cdraw.c +++ b/src/cdraw.c @@ -80,7 +80,7 @@ main_window_init(const char *s) return 1; } - SDL_SetRenderDrawColor(ren, 18, 18, 18, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x121212ff)); SDL_SetRenderDrawBlendMode(ren, SDL_BLENDMODE_NONE); SDL_RenderPresent(ren); @@ -464,7 +464,7 @@ ui_panel_redraw(UIPanel *p) p->redraw = 0; SDL_SetRenderTarget(ren, p->pres); - SDL_SetRenderDrawColor(ren, 0, 0, 0, 0); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0)); SDL_RenderClear(ren); switch (p->type) { case UI_PANELTYPE_CANVAS: @@ -540,7 +540,7 @@ ui_panel_canvas_redraw(UIPanelCanvas *p) dest.w = p->head.geom.w - 16; dest.h = p->head.geom.h - 16; SDL_RenderSetViewport(ren, &dest); - SDL_SetRenderDrawColor(ren, 18, 18, 18, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x121212ff)); SDL_RenderClear(ren); if (cur_canvas != NULL) { SDL_RenderSetViewport(ren, NULL); @@ -576,10 +576,10 @@ ui_panel_palette_redraw(UIPanelPalette *p) dest.w = p->head.geom.w - 16; dest.h = p->head.geom.h - 16; SDL_RenderSetViewport(ren, &dest); - SDL_SetRenderDrawColor(ren, 18, 18, 18, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x121212ff)); SDL_RenderClear(ren); - SDL_SetRenderDrawColor(ren, 0, 0, 0, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x000000ff)); if (pp != NULL) { dest.x = dest.y = 0; dest.w = 120; @@ -670,13 +670,13 @@ ui_panel_timeline_redraw(UIPanelTimeline *p) dest.w = p->head.geom.w - 12; dest.h = p->head.geom.h - 12; SDL_RenderSetViewport(ren, &dest); - SDL_SetRenderDrawColor(ren, 199, 207, 221, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0xc7cfddff)); SDL_RenderClear(ren); if (cur_canvas != NULL) { dest.x = 2; dest.w = dest.h = 20; dest.y = (cur_canvas->layer_arr_cnt - 1 - cur_canvas->cur_layer) * 22 + 2; - SDL_SetRenderDrawColor(ren, 101, 115, 146, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x657392ff)); SDL_RenderFillRect(ren, &dest); SDL_SetRenderDrawColor(ren, 19, 19, 19, 255); for (i = 0; i < cur_canvas->layer_arr_cnt; i++) { |