Make Light_color/Dark_color ini settings work

see http://pulkomandy.tk/projects/GrafX2/ticket/81

I don't know why they were disabled...
This commit is contained in:
Thomas Bernard 2018-12-08 17:28:10 +01:00 committed by Adrien Destugues
parent 72a7a4a65d
commit b2f310d1d5
2 changed files with 5 additions and 4 deletions

View File

@ -957,10 +957,10 @@ int Init_program(int argc,char * argv[])
} }
Set_current_skin(Config.Skin_file, gfx); Set_current_skin(Config.Skin_file, gfx);
// Override colors // Override colors
// Gfx->Default_palette[MC_Black]=Config.Fav_menu_colors[0]; Gfx->Default_palette[MC_Black]=Config.Fav_menu_colors[0];
// Gfx->Default_palette[MC_Dark] =Config.Fav_menu_colors[1]; Gfx->Default_palette[MC_Dark] =Config.Fav_menu_colors[1];
// Gfx->Default_palette[MC_Light]=Config.Fav_menu_colors[2]; Gfx->Default_palette[MC_Light]=Config.Fav_menu_colors[2];
// Gfx->Default_palette[MC_White]=Config.Fav_menu_colors[3]; Gfx->Default_palette[MC_White]=Config.Fav_menu_colors[3];
// Even when using the skin's palette, if RGB range is small // Even when using the skin's palette, if RGB range is small
// the colors will be unusable. // the colors will be unusable.

View File

@ -528,6 +528,7 @@ int Load_INI(T_Config * conf)
return ERROR_INI_MISSING; return ERROR_INI_MISSING;
} }
} }
GFX2_Log(GFX2_DEBUG, "Load_INI() loading %s\n", filename);
if ((return_code=Load_INI_reach_group(file,buffer,"[MOUSE]"))) if ((return_code=Load_INI_reach_group(file,buffer,"[MOUSE]")))
goto Erreur_Retour; goto Erreur_Retour;