Another change that looks bigger than it is: changed out the global extern WResourceManager to a real singleton. This means that it's no longer being init'ed at static initialization time, and we can debug construction/destruction properly; it's also safer in a multithreaded context.
This commit is contained in:
@@ -304,7 +304,7 @@ string SimplePad::Finish()
|
||||
void SimplePad::Render()
|
||||
{
|
||||
//This could use some cleaning up to make margins more explicit
|
||||
WFont * mFont = resources.GetWFont(Fonts::MENU_FONT);
|
||||
WFont * mFont = WResourceManager::Instance()->GetWFont(Fonts::MENU_FONT);
|
||||
|
||||
float offX = 0, offY = 0;
|
||||
float kH = mFont->GetHeight();
|
||||
|
||||
Reference in New Issue
Block a user