- Timestamp:
- Jun 6, 2009, 2:39:54 PM (15 years ago)
- Location:
- Daodan
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/daodan_gl.c
r340 r341 46 46 }; 47 47 48 constshort daodan_resdepths[] = { 16, 32 };48 short daodan_resdepths[] = { 16, 32 }; 49 49 50 50 DEVMODE orig_devmode, cur_devmode, new_devmode; … … 86 86 int i, j; 87 87 88 if (!M3gResolutionSwitch) 89 daodan_resdepths[0] = orig_devmode.dmBitsPerPel; 90 88 91 for (i = 0; i < builtin_depths; i ++) 89 92 { … … 99 102 for (j = 0; j < builtin_modes; j ++) 100 103 if (!(daodan_reslist[j].Width == 640 && daodan_reslist[j].Height == 480) && !(daodan_reslist[j].Width == screen_x && daodan_reslist[j].Height == screen_y) && 101 ((daodan_reslist[j].Width < screen_x && daodan_reslist[j].Height < screen_y) || daodan_testmode(daodan_reslist[j])))104 ((daodan_reslist[j].Width < screen_x && daodan_reslist[j].Height < screen_y) || (M3gResolutionSwitch && daodan_testmode(daodan_reslist[j])))) 102 105 { 103 106 if (!scrInsert && (daodan_reslist[j].Width > screen_x || (daodan_reslist[j].Width == screen_x && daodan_reslist[j].Height > screen_y))) … … 130 133 goto modesfull; 131 134 } 135 136 if (!M3gResolutionSwitch) 137 goto modesfull; 132 138 } 133 139
Note:
See TracChangeset
for help on using the changeset viewer.