Changeset 340
- Timestamp:
- Jun 6, 2009, 2:25:58 PM (15 years ago)
- Location:
- Daodan
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan.c
r339 r340 116 116 // DDrPatch_MakeJump(gl_platform_initialize, daodangl_platform_initialize); 117 117 118 //init_daodan_gl();118 init_daodan_gl(); 119 119 120 120 ONiMain(argc, argv); -
Daodan/src/daodan_gl.c
r326 r340 20 20 { 768 , 480, 0, 0 }, 21 21 { 800 , 480, 0, 0 }, 22 { 800 , 600, 0, 0 }, 22 23 { 852 , 480, 0, 0 }, 23 24 { 856 , 480, 0, 0 }, … … 41 42 { 1600, 1200, 0, 0 }, 42 43 { 1920, 1080, 0, 0 }, 44 { 1920, 1200, 0, 0 }, 43 45 { 1920, 1440, 0, 0 }, 44 46 }; … … 86 88 for (i = 0; i < builtin_depths; i ++) 87 89 { 90 bool scrInsert = false; 91 88 92 modes[vmodes].Width = 640; 89 93 modes[vmodes].Height = 480; … … 97 101 ((daodan_reslist[j].Width < screen_x && daodan_reslist[j].Height < screen_y) || daodan_testmode(daodan_reslist[j]))) 98 102 { 103 if (!scrInsert && (daodan_reslist[j].Width > screen_x || (daodan_reslist[j].Width == screen_x && daodan_reslist[j].Height > screen_y))) 104 { 105 modes[vmodes].Width = screen_x; 106 modes[vmodes].Height = screen_y; 107 modes[vmodes].Depth = daodan_resdepths[i]; 108 109 if (++vmodes == max_modes - builtin_modes + i) 110 goto modesfull; 111 112 scrInsert = true; 113 } 114 99 115 modes[vmodes].Width = daodan_reslist[j].Width; 100 116 modes[vmodes].Height = daodan_reslist[j].Height; … … 105 121 } 106 122 107 modes[vmodes].Width = screen_x; 108 modes[vmodes].Height = screen_y; 109 modes[vmodes].Depth = daodan_resdepths[i]; 110 111 if (++vmodes == max_modes - builtin_modes + i) 112 goto modesfull; 123 if (!scrInsert) 124 { 125 modes[vmodes].Width = screen_x; 126 modes[vmodes].Height = screen_y; 127 modes[vmodes].Depth = daodan_resdepths[i]; 128 129 if (++vmodes == max_modes - builtin_modes + i) 130 goto modesfull; 131 } 113 132 } 114 133 … … 128 147 devmode.dmPelsHeight = mode.Height; 129 148 130 return (ChangeDisplaySettings(&devmode, CDS_TEST ) == DISP_CHANGE_SUCCESSFUL);149 return (ChangeDisplaySettings(&devmode, CDS_TEST | CDS_FULLSCREEN) == DISP_CHANGE_SUCCESSFUL); 131 150 } 132 151
Note:
See TracChangeset
for help on using the changeset viewer.