fix uninitialized VideoModeParams

This commit is contained in:
Glenn Maynard
2004-03-25 02:59:01 +00:00
parent 8d6c956ce1
commit 3661728d9d
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -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()
+1 -1
View File
@@ -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; }
+1 -1
View File
@@ -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() );
} }