make RageDisplay::Init virtual to remove dupe code

This commit is contained in:
Chris Danford
2006-02-06 20:14:02 +00:00
parent 70479fd0c4
commit dbafa29a88
8 changed files with 58 additions and 42 deletions
+6 -1
View File
@@ -71,11 +71,16 @@ static RageDisplay::PixelFormatDesc PIXEL_FORMAT_DESC[NUM_PixelFormat] = {
};
RageDisplay_Null::RageDisplay_Null( VideoModeParams p )
RageDisplay_Null::RageDisplay_Null()
{
LOG->MapLog("renderer", "Current renderer: null");
}
RString RageDisplay_Null::Init( const VideoModeParams &p, bool bAllowUnacceleratedRenderer )
{
bool bIgnore = false;
SetVideoMode( p, bIgnore );
return RString();
}
void RageDisplay_Null::GetDisplayResolutions( DisplayResolutions &out ) const