From fcb327ce7c3b519288b27894abb0488a69456634 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 27 Apr 2019 14:48:29 +0200 Subject: [PATCH] move the +/- and the color preview in palette dialog --- src/palette.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/palette.c b/src/palette.c index ab01dd3d..c8833bf8 100644 --- a/src/palette.c +++ b/src/palette.c @@ -1078,20 +1078,20 @@ void Tag_used_colors(byte color, dword color_usage[]) void Button_Palette(int btn) { - static const int BUTTON_PLUS_X = 182; - static const int BUTTON_PLUS_Y = 163; - static const int BUTTON_MINUS_X = 198; - static const int BUTTON_MINUS_Y = 163; + static const int BUTTON_PLUS_X = 180; + static const int BUTTON_PLUS_Y = 79; + static const int BUTTON_MINUS_X = 196; + static const int BUTTON_MINUS_Y = 79; // Coordinates of the block that displays Backcolor - static const int BGCOLOR_DISPLAY_X = 176; - static const int BGCOLOR_DISPLAY_Y = 65 + 14; + static const int BGCOLOR_DISPLAY_X = 174; + static const int BGCOLOR_DISPLAY_Y = 65 + 14 + 14; static const int BGCOLOR_DISPLAY_W = 40; static const int BGCOLOR_DISPLAY_H = 96 - 14; // Coordinates of the block that displays Forecolor - static const int FGCOLOR_DISPLAY_X = 180; - static const int FGCOLOR_DISPLAY_Y = 69 + 14; + static const int FGCOLOR_DISPLAY_X = 178; + static const int FGCOLOR_DISPLAY_Y = 69 + 14 + 14; static const int FGCOLOR_DISPLAY_W = 32; static const int FGCOLOR_DISPLAY_H = 88 - 14;