config: background color options for editor and picker

This commit is contained in:
KikooDX 2021-03-27 16:45:49 +01:00
parent de64f2a56a
commit 5d556f5f21
3 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,10 @@
#define TILE_WIDTH 16
#define TILE_HEIGHT 16
#define EDITOR_BACKGROUND_COLOR \
(Color) { 0, 0, 0, 255 }
#define PICKER_BACKGROUND_COLOR \
(Color) { 0, 0, 0, 255 }
#define UNSELECTED_TILE_COLOR \
(Color) { 80, 80, 80, 255 }
#define OVERRING_TILE_COLOR \

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright (C) 2021 KikooDX */
#include "conf.h"
#include "editing_area/draw.h"
#include "editing_area/level.h"
#include "info.h"
@ -60,7 +61,7 @@ int editing_area_main(struct Options options,
/* draw */
BeginDrawing();
ClearBackground(BLACK);
ClearBackground(EDITOR_BACKGROUND_COLOR);
level_draw(level, options, tileset);
editor_mouse_draw(options, mouse_x, mouse_y);

View File

@ -1,6 +1,7 @@
/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright (C) 2021 KikooDX */
#include "conf.h"
#include "mouse.h"
#include "options.h"
#include "shared_data.h"
@ -41,7 +42,7 @@ int tile_picker_main(struct Options options,
/* draw */
BeginDrawing();
ClearBackground(BLACK);
ClearBackground(PICKER_BACKGROUND_COLOR);
tileset_draw(tileset, options,
shared_data->selected_tile);