aboutsummaryrefslogtreecommitdiff
path: root/src/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui.c')
-rw-r--r--src/ui.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ui.c b/src/ui.c
index f12becc..130c464 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -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++) {