]> Dogcows Code - chaz/yoink/blobdiff - src/Hud.cc
update video methods
[chaz/yoink] / src / Hud.cc
index dde53ee37b5f486c807dfda50680841387163c21..5687ac88bdb1c27ab2f998775662ef951255c670 100644 (file)
@@ -8,7 +8,7 @@
 *****************************************************************************/
 
 #include <moof/aabb.hh>
-#include <moof/log.hh>
+#include <moof/debug.hh>
 #include <moof/opengl.hh>
 #include <moof/video.hh>
 
@@ -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.017596 seconds and 4 git commands to generate.