*
**************************************************************************/
+#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();
}
#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;
}
}
-void Video::setDispatch(Dispatch& dispatch)
-{
- mDispatch = dispatch;
-}
-
-
Video::Attributes::Attributes()
{
init();