Removed evil things. WIN32 SDL/SGL now uses (totally crappy)

SDL sounds instead of  old directx sounds. Its time to pay for "portability".
This commit is contained in:
Dabb 2000-12-03 10:53:07 +00:00
parent 05bb0be33a
commit 0a8b0a72d2
2 changed files with 0 additions and 24 deletions

View file

@ -49,12 +49,6 @@ cvar_t *vid_fullscreen;
extern viddef_t vid; // global video state
unsigned short d_8to16table[256];
#ifdef WIN32
// fixme: this is evil...
#include <windows.h>
HWND mainwindow;
#endif
int modestate; // fixme: just to avoid cross-comp. errors - remove later
// The original defaults
@ -173,12 +167,6 @@ VID_Init (unsigned char *palette)
// initialize the mouse
SDL_ShowCursor(0);
#ifdef WIN32
// fixme: EVIL thing - but needed for win32 until we get
// SDL_sound ready - without this DirectSound fails.
// could replace this with SDL_SysWMInfo
mainwindow=GetActiveWindow();
#endif
}
void

View file

@ -52,12 +52,6 @@ static qboolean vid_initialized = false;
cvar_t *vid_fullscreen;
#ifdef WIN32
/* FIXME: this is evil hack */
#include <windows.h>
HWND mainwindow;
#endif
int VID_options_items = 1;
int modestate;
@ -200,12 +194,6 @@ VID_Init (unsigned char *palette)
vid_initialized = true;
#ifdef WIN32
// FIXME: EVIL thing - but needed for win32 until we get
// SDL_sound ready - without this DirectSound fails.
// could replace this with SDL_SysWMInfo
mainwindow=GetActiveWindow();
#endif
vid.recalc_refdef = 1; // force a surface cache flush
}