mirror of
https://github.com/UberGames/ioef.git
synced 2025-02-17 17:31:08 +00:00
commit
605dfabb94
3 changed files with 3 additions and 3 deletions
|
@ -516,7 +516,7 @@ static qboolean GLimp_StartDriverAndSetMode(int mode, qboolean fullscreen, qbool
|
||||||
{
|
{
|
||||||
const char *driverName;
|
const char *driverName;
|
||||||
|
|
||||||
if (SDL_Init(SDL_INIT_VIDEO) == -1)
|
if (SDL_Init(SDL_INIT_VIDEO) != 0)
|
||||||
{
|
{
|
||||||
ri.Printf( PRINT_ALL, "SDL_Init( SDL_INIT_VIDEO ) FAILED (%s)\n", SDL_GetError());
|
ri.Printf( PRINT_ALL, "SDL_Init( SDL_INIT_VIDEO ) FAILED (%s)\n", SDL_GetError());
|
||||||
return qfalse;
|
return qfalse;
|
||||||
|
|
|
@ -437,7 +437,7 @@ static void IN_InitJoystick( void )
|
||||||
if (!SDL_WasInit(SDL_INIT_JOYSTICK))
|
if (!SDL_WasInit(SDL_INIT_JOYSTICK))
|
||||||
{
|
{
|
||||||
Com_DPrintf("Calling SDL_Init(SDL_INIT_JOYSTICK)...\n");
|
Com_DPrintf("Calling SDL_Init(SDL_INIT_JOYSTICK)...\n");
|
||||||
if (SDL_Init(SDL_INIT_JOYSTICK) == -1)
|
if (SDL_Init(SDL_INIT_JOYSTICK) != 0)
|
||||||
{
|
{
|
||||||
Com_DPrintf("SDL_Init(SDL_INIT_JOYSTICK) failed: %s\n", SDL_GetError());
|
Com_DPrintf("SDL_Init(SDL_INIT_JOYSTICK) failed: %s\n", SDL_GetError());
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -156,7 +156,7 @@ qboolean SNDDMA_Init(void)
|
||||||
|
|
||||||
if (!SDL_WasInit(SDL_INIT_AUDIO))
|
if (!SDL_WasInit(SDL_INIT_AUDIO))
|
||||||
{
|
{
|
||||||
if (SDL_Init(SDL_INIT_AUDIO) == -1)
|
if (SDL_Init(SDL_INIT_AUDIO) != 0)
|
||||||
{
|
{
|
||||||
Com_Printf( "FAILED (%s)\n", SDL_GetError( ) );
|
Com_Printf( "FAILED (%s)\n", SDL_GetError( ) );
|
||||||
return qfalse;
|
return qfalse;
|
||||||
|
|
Loading…
Reference in a new issue