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:
parent
ad6a2442ec
commit
283939b3de
14
buttons.c
14
buttons.c
@ -1261,18 +1261,18 @@ void Display_modes_list(short list_start, short cursor_position)
|
|||||||
if (cursor_position!=index)
|
if (cursor_position!=index)
|
||||||
{
|
{
|
||||||
background_color =MC_Black;
|
background_color =MC_Black;
|
||||||
if ((Video_mode[current_mode].State & 3) != 3)
|
if ((Video_mode[current_mode].State & 3) == 3)
|
||||||
text_color=MC_Light;
|
|
||||||
else
|
|
||||||
text_color=MC_Dark;
|
text_color=MC_Dark;
|
||||||
|
else
|
||||||
|
text_color=MC_Light;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
background_color =MC_Dark;
|
background_color =MC_Dark;
|
||||||
if ((Video_mode[current_mode].State & 3) != 3)
|
if ((Video_mode[current_mode].State & 3) == 3)
|
||||||
text_color=MC_White;
|
|
||||||
else
|
|
||||||
text_color=MC_Light;
|
text_color=MC_Light;
|
||||||
|
else
|
||||||
|
text_color=MC_White;
|
||||||
}
|
}
|
||||||
Num2str(Video_mode[current_mode].Width,str,4);
|
Num2str(Video_mode[current_mode].Width,str,4);
|
||||||
str[4]=' ';
|
str[4]=' ';
|
||||||
@ -1375,7 +1375,7 @@ void Button_Resolution(void)
|
|||||||
Window_set_special_button(38,86,225,80); // 5
|
Window_set_special_button(38,86,225,80); // 5
|
||||||
|
|
||||||
selected_mode=Current_resolution;
|
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)
|
if (selected_mode<Nb_video_modes-MODELIST_LINES/2)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user