mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
Restrict editor 2d video modes in the startup window to modes >= 640x480 since that's all it'll really let you use anyway
git-svn-id: https://svn.eduke32.com/eduke32@604 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
3f42f04ee7
commit
3835a0ca9a
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ static void PopulateForm(void)
|
|||
}
|
||||
|
||||
// only 8-bit modes get used for 2D
|
||||
if (validmode[i].bpp != 8) continue;
|
||||
if (validmode[i].bpp != 8 || validmode[i].xdim < 640 || validmode[i].ydim < 480) continue;
|
||||
Bsprintf(buf, "%d x %d", validmode[i].xdim, validmode[i].ydim);
|
||||
gtk_list_store_append(modes2d, &iter);
|
||||
gtk_list_store_set(modes2d, &iter, 0,buf, 1,i, -1);
|
||||
|
|
|
@ -73,7 +73,7 @@ static void PopulateForm(void)
|
|||
if (i == mode3d) ComboBox_SetCurSel(hwnd3d, j);
|
||||
|
||||
// only 8-bit modes get used for 2D
|
||||
if (validmode[i].bpp != 8) continue;
|
||||
if (validmode[i].bpp != 8 || validmode[i].xdim < 640 || validmode[i].ydim < 480) continue;
|
||||
Bsprintf(buf, "%d x %d", validmode[i].xdim, validmode[i].ydim);
|
||||
j = ComboBox_AddString(hwnd2d, buf);
|
||||
ComboBox_SetItemData(hwnd2d, j, i);
|
||||
|
|
Loading…
Reference in a new issue