Proper way of detecting windowed modes to not display a ratio in the window list.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@855 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
783418fd57
commit
92b5727994
12
buttons.c
12
buttons.c
@ -1278,10 +1278,11 @@ void Display_modes_list(short list_start, short cursor_position)
|
||||
str[4]=' ';
|
||||
Num2str(Video_mode[current_mode].Height,str+5,4);
|
||||
|
||||
if(Video_mode[current_mode].Fullscreen == 1)
|
||||
memcpy(str+9," Fullscreen ",13);
|
||||
if(Video_mode[current_mode].Fullscreen == 0)
|
||||
memcpy(str+9," Window ",20);
|
||||
else
|
||||
memcpy(str+9," Window ",13);
|
||||
{
|
||||
memcpy(str+9," Fullscreen ",13);
|
||||
|
||||
if (Video_mode[current_mode].Width*3 == Video_mode[current_mode].Height*4)
|
||||
ratio=" 4:3";
|
||||
@ -1301,10 +1302,9 @@ void Display_modes_list(short list_start, short cursor_position)
|
||||
ratio=" 25:16";
|
||||
else
|
||||
ratio=" ";
|
||||
if (current_mode == 0)
|
||||
ratio=" ";
|
||||
|
||||
strcat(str,ratio);
|
||||
strcpy(str+21,ratio);
|
||||
}
|
||||
|
||||
Print_in_window(38,y_pos,str,text_color,background_color);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user