mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed error when having low number of video modes.
This commit is contained in:
parent
2cb87d92ba
commit
1744f7966c
|
@ -867,6 +867,9 @@ static int settings_video_render_select_mode()
|
|||
for (int i = 0; i < 7; i++)
|
||||
{
|
||||
int index = i + scroll_index;
|
||||
if(index >= num_modes)
|
||||
break;
|
||||
|
||||
//key_thing key = keys[i + scroll_index];
|
||||
int depth = modes[index].red+modes[index].green+modes[index].blue;
|
||||
if(depth < 16)
|
||||
|
|
Loading…
Reference in a new issue