X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FVideo.cc;h=9ca53c1cc46d5cfd3dc5c32963a4ed813dd81107;hp=195f4130765a683ce4dbdf52dba423fa2f01e650;hb=321f005b45580b8c2c14ddc577fb6ca7780a68c5;hpb=90b2c7fb10b244b781b84965a0d36f1f323ee94d diff --git a/src/Moof/Video.cc b/src/Moof/Video.cc index 195f413..9ca53c1 100644 --- a/src/Moof/Video.cc +++ b/src/Moof/Video.cc @@ -9,6 +9,7 @@ * **************************************************************************/ +#include "Dispatch.hh" #include "Error.hh" #include "Image.hh" #include "Log.hh" @@ -19,15 +20,13 @@ 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();