]> Dogcows Code - chaz/yoink/blobdiff - src/Hud.cc
update video methods
[chaz/yoink] / src / Hud.cc
index 20d6b4e3beee63d470a272a782b5a83b55a69807..5687ac88bdb1c27ab2f998775662ef951255c670 100644 (file)
@@ -103,9 +103,9 @@ Hud::Hud(GameState& state) :
        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)
This page took 0.020039 seconds and 4 git commands to generate.