]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Video.cc
new win32 deps script; using pkgconfig for openal
[chaz/yoink] / src / Moof / Video.cc
index 195f4130765a683ce4dbdf52dba423fa2f01e650..9ca53c1cc46d5cfd3dc5c32963a4ed813dd81107 100644 (file)
@@ -9,6 +9,7 @@
 *
 **************************************************************************/
 
+#include "Dispatch.hh"
 #include "Error.hh"
 #include "Image.hh"
 #include "Log.hh"
 namespace Mf {
 
 
-Video::Video() :
-       mDispatch(Dispatch::global())
+Video::Video()
 {
        init();
 }
 
 Video::Video(const Attributes& attribs) :
-       mAttribs(attribs),
-       mDispatch(Dispatch::global())
+       mAttribs(attribs)
 {
        init();
 }
@@ -123,14 +122,14 @@ void Video::setVideoMode(const int mode[3])
 
 #if !defined(linux) && !defined(__linux) && !defined(__linux__)
                        logInfo("video context recreated");
-                       mDispatch.dispatch("video.newcontext");
+                       Dispatch::global().dispatch("video.newcontext");
 #endif
                }
                else Error(Error::SDL_VIDEOMODE).raise();
        }
 }
 
-Video::Attributes Video::getAttributes() const
+Video::Attributes Video::attributes() const
 {
        return mAttribs;
 }
@@ -289,12 +288,6 @@ void Video::makeCurrent() const
 }
 
 
-void Video::setDispatch(Dispatch& dispatch)
-{
-       mDispatch = dispatch;
-}
-
-
 Video::Attributes::Attributes()
 {
        init();
This page took 0.018813 seconds and 4 git commands to generate.