mBar2(moof::sprite("StatusBars"), 2),
mFont("Font")
{
- moof::video* video = moof::video::current();
- ASSERT(video && "a current video context should be set");
- resize(video->width(), video->height());
+ ASSERT(moof::video::ready() && "a current video context should be set");
+ moof::video& video = moof::video::current();
+ resize(video.width(), video.height());
}
void Hud::resize(int width, int height)