From 3661728d9d0f16c8947b2cae9ed75e59c337d2da Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 25 Mar 2004 02:59:01 +0000 Subject: [PATCH] fix uninitialized VideoModeParams --- stepmania/src/RageDisplay_Null.cpp | 3 ++- stepmania/src/RageDisplay_Null.h | 2 +- stepmania/src/StepMania.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/stepmania/src/RageDisplay_Null.cpp b/stepmania/src/RageDisplay_Null.cpp index 648337bd2a..d2295dcd33 100644 --- a/stepmania/src/RageDisplay_Null.cpp +++ b/stepmania/src/RageDisplay_Null.cpp @@ -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"); + SetVideoMode( p ); } SDL_Surface* RageDisplay_Null::CreateScreenshot() diff --git a/stepmania/src/RageDisplay_Null.h b/stepmania/src/RageDisplay_Null.h index 6f19f2666f..87f07082f7 100644 --- a/stepmania/src/RageDisplay_Null.h +++ b/stepmania/src/RageDisplay_Null.h @@ -4,7 +4,7 @@ class RageDisplay_Null: public RageDisplay { public: - RageDisplay_Null(); + RageDisplay_Null( VideoModeParams p ); void Update( float fDeltaTime ) { } bool IsSoftwareRenderer() { return false; } diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index 9b024c6399..3bdb4d1b5f 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -656,7 +656,7 @@ RageDisplay *CreateDisplay() #endif } else if( sRenderer.CompareNoCase("null")==0 ) - return new RageDisplay_Null(); + return new RageDisplay_Null( params ); else RageException::Throw("Unknown video renderer value: %s", sRenderer.c_str() ); }