From 283939b3de68864f4ae2614f60b9082313781dd2 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Thu, 11 Jun 2009 17:20:02 +0000 Subject: [PATCH] Fixes issue 177 : screenmode listing error. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@858 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- buttons.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/buttons.c b/buttons.c index 6f5e841d..1b58324a 100644 --- a/buttons.c +++ b/buttons.c @@ -1261,18 +1261,18 @@ void Display_modes_list(short list_start, short cursor_position) if (cursor_position!=index) { background_color =MC_Black; - if ((Video_mode[current_mode].State & 3) != 3) - text_color=MC_Light; - else + if ((Video_mode[current_mode].State & 3) == 3) text_color=MC_Dark; + else + text_color=MC_Light; } else { background_color =MC_Dark; - if ((Video_mode[current_mode].State & 3) != 3) - text_color=MC_White; - else + if ((Video_mode[current_mode].State & 3) == 3) text_color=MC_Light; + else + text_color=MC_White; } Num2str(Video_mode[current_mode].Width,str,4); str[4]=' '; @@ -1375,7 +1375,7 @@ void Button_Resolution(void) Window_set_special_button(38,86,225,80); // 5 selected_mode=Current_resolution; - if (selected_mode>=MODELIST_LINES/2) + if (selected_mode>=MODELIST_LINES/2 && Nb_video_modes > MODELIST_LINES) { if (selected_mode