Use Init() for all screens, so we can set state before the base class
members are loaded--they'll see resets, score finalization, etc. It also results in smaller code, due to a g++ bug that causes constructors to be emitted several times.
This commit is contained in:
@@ -28,6 +28,12 @@ void ScreenTestFonts::HandleScreenMessage( const ScreenMessage SM )
|
||||
REGISTER_SCREEN_CLASS( ScreenTestFonts );
|
||||
ScreenTestFonts::ScreenTestFonts( CString sClassName ) : Screen( sClassName )
|
||||
{
|
||||
}
|
||||
|
||||
void ScreenTestFonts::Init()
|
||||
{
|
||||
Screen::Init();
|
||||
|
||||
Hline.SetXY(SCREEN_CENTER_X, SCREEN_CENTER_Y);
|
||||
Hline.SetZoomX(LineWidth);
|
||||
Hline.SetDiffuse( RageColor(1, 1, 1, 1) );
|
||||
|
||||
Reference in New Issue
Block a user