From 9c1c219348afeabf4e30649b069f9be48512d27a Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 23 Feb 2015 19:34:48 +0000 Subject: [PATCH] Make the transparent color more visible with a light/dark grey highlight. It is often confusing which color is transparent in the color palette. Mark it with a small pattern to make it easier to see. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2088 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/windows.c | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/src/windows.c b/src/windows.c index 9c3a0bd1..8cdcfc82 100644 --- a/src/windows.c +++ b/src/windows.c @@ -336,6 +336,10 @@ void Display_menu_palette(void) if (Menu_is_visible && Menu_bars[MENUBAR_TOOLS].Visible) { + uint8_t transparent = Main_backups->Pages->Transparent_color; + int cw,ch; + + // Fill the whole palette area with black Block( Menu_bars[MENUBAR_TOOLS].Width*Menu_factor_X, Menu_Y, @@ -343,20 +347,30 @@ void Display_menu_palette(void) (Menu_bars[MENUBAR_TOOLS].Height)*Menu_factor_Y, MC_Black); - if (Config.Separate_colors) - for (color=First_color_in_palette;color<256&&(color-First_color_in_palette)