mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 17:21:46 +00:00
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:
parent
05bb0be33a
commit
0a8b0a72d2
2 changed files with 0 additions and 24 deletions
|
@ -49,12 +49,6 @@ cvar_t *vid_fullscreen;
|
||||||
extern viddef_t vid; // global video state
|
extern viddef_t vid; // global video state
|
||||||
unsigned short d_8to16table[256];
|
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
|
int modestate; // fixme: just to avoid cross-comp. errors - remove later
|
||||||
|
|
||||||
// The original defaults
|
// The original defaults
|
||||||
|
@ -173,12 +167,6 @@ VID_Init (unsigned char *palette)
|
||||||
// initialize the mouse
|
// initialize the mouse
|
||||||
SDL_ShowCursor(0);
|
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
|
void
|
||||||
|
|
|
@ -52,12 +52,6 @@ static qboolean vid_initialized = false;
|
||||||
|
|
||||||
cvar_t *vid_fullscreen;
|
cvar_t *vid_fullscreen;
|
||||||
|
|
||||||
#ifdef WIN32
|
|
||||||
/* FIXME: this is evil hack */
|
|
||||||
#include <windows.h>
|
|
||||||
HWND mainwindow;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int VID_options_items = 1;
|
int VID_options_items = 1;
|
||||||
int modestate;
|
int modestate;
|
||||||
|
|
||||||
|
@ -200,12 +194,6 @@ VID_Init (unsigned char *palette)
|
||||||
|
|
||||||
vid_initialized = true;
|
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
|
vid.recalc_refdef = 1; // force a surface cache flush
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue