- ASSERT(Mf::video &&
- "no current video context from which to get dimensions");
- resize(Mf::video->getWidth(), Mf::video->getHeight());
+ Mf::Video* video = Mf::Video::current();
+ ASSERT(video && "a current video context should be set");
+ resize(video->getWidth(), video->getHeight());