fix uninitialized VideoModeParams
This commit is contained in:
@@ -86,9 +86,10 @@ static RageDisplay::PixelFormatDesc PIXEL_FORMAT_DESC[RageDisplay::NUM_PIX_FORMA
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
RageDisplay_Null::RageDisplay_Null()
|
RageDisplay_Null::RageDisplay_Null( VideoModeParams p )
|
||||||
{
|
{
|
||||||
LOG->MapLog("renderer", "Current renderer: null");
|
LOG->MapLog("renderer", "Current renderer: null");
|
||||||
|
SetVideoMode( p );
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_Surface* RageDisplay_Null::CreateScreenshot()
|
SDL_Surface* RageDisplay_Null::CreateScreenshot()
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
class RageDisplay_Null: public RageDisplay
|
class RageDisplay_Null: public RageDisplay
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RageDisplay_Null();
|
RageDisplay_Null( VideoModeParams p );
|
||||||
void Update( float fDeltaTime ) { }
|
void Update( float fDeltaTime ) { }
|
||||||
|
|
||||||
bool IsSoftwareRenderer() { return false; }
|
bool IsSoftwareRenderer() { return false; }
|
||||||
|
|||||||
@@ -656,7 +656,7 @@ RageDisplay *CreateDisplay()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else if( sRenderer.CompareNoCase("null")==0 )
|
else if( sRenderer.CompareNoCase("null")==0 )
|
||||||
return new RageDisplay_Null();
|
return new RageDisplay_Null( params );
|
||||||
else
|
else
|
||||||
RageException::Throw("Unknown video renderer value: %s", sRenderer.c_str() );
|
RageException::Throw("Unknown video renderer value: %s", sRenderer.c_str() );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user