summaryrefslogtreecommitdiff
path: root/apps/plugins/sdl/progs/wolf3d/wl_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/sdl/progs/wolf3d/wl_main.c')
-rw-r--r--apps/plugins/sdl/progs/wolf3d/wl_main.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/apps/plugins/sdl/progs/wolf3d/wl_main.c b/apps/plugins/sdl/progs/wolf3d/wl_main.c
index 634196498a..8808cd0883 100644
--- a/apps/plugins/sdl/progs/wolf3d/wl_main.c
+++ b/apps/plugins/sdl/progs/wolf3d/wl_main.c
@@ -1191,9 +1191,6 @@ static void InitGame()
1191#endif 1191#endif
1192 1192
1193 // initialize SDL 1193 // initialize SDL
1194#if defined _WIN32
1195 putenv("SDL_VIDEODRIVER=directx");
1196#endif
1197 if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0) 1194 if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0)
1198 { 1195 {
1199 printf("Unable to init SDL: %s\n", SDL_GetError()); 1196 printf("Unable to init SDL: %s\n", SDL_GetError());
@@ -1217,23 +1214,7 @@ static void InitGame()
1217#endif 1214#endif
1218 1215
1219 SignonScreen (); 1216 SignonScreen ();
1220 1217
1221#if defined _WIN32
1222 if(!fullscreen)
1223 {
1224 struct SDL_SysWMinfo wmInfo;
1225 SDL_VERSION(&wmInfo.version);
1226
1227 if(SDL_GetWMInfo(&wmInfo) != -1)
1228 {
1229 HWND hwndSDL = wmInfo.window;
1230 DWORD style = GetWindowLong(hwndSDL, GWL_STYLE) & ~WS_SYSMENU;
1231 SetWindowLong(hwndSDL, GWL_STYLE, style);
1232 SetWindowPos(hwndSDL, NULL, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
1233 }
1234 }
1235#endif
1236
1237 VH_Startup (); 1218 VH_Startup ();
1238 IN_Startup (); 1219 IN_Startup ();
1239 PM_Startup (); 1220 PM_Startup ();
@@ -1911,11 +1892,7 @@ void CheckParameters(int argc, char *argv[])
1911 " --ignorenumchunks Ignores the number of chunks in VGAHEAD.*\n" 1892 " --ignorenumchunks Ignores the number of chunks in VGAHEAD.*\n"
1912 " (may be useful for some broken mods)\n" 1893 " (may be useful for some broken mods)\n"
1913 " --configdir <dir> Directory where config file and save games are stored\n" 1894 " --configdir <dir> Directory where config file and save games are stored\n"
1914#if defined(_arch_dreamcast) || defined(_WIN32)
1915 " (default: current directory)\n"
1916#else
1917 " (default: $HOME/.wolf4sdl)\n" 1895 " (default: $HOME/.wolf4sdl)\n"
1918#endif
1919#if defined(SPEAR) && !defined(SPEARDEMO) 1896#if defined(SPEAR) && !defined(SPEARDEMO)
1920 " --mission <mission> Mission number to play (0-3)\n" 1897 " --mission <mission> Mission number to play (0-3)\n"
1921 " (default: 0 -> .sod, 1-3 -> .sd*)\n" 1898 " (default: 0 -> .sod, 1-3 -> .sd*)\n"