Fixes issue 177 : screenmode listing error.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@858 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2009-06-11 17:20:02 +00:00
parent ad6a2442ec
commit 283939b3de

View File

@ -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<Nb_video_modes-MODELIST_LINES/2)
{