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:
terminx 2008-01-28 01:13:10 +00:00
parent 3f42f04ee7
commit 3835a0ca9a
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);