X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fvideo.cc;h=7ad8efcf295dd7b9440c723b2f5bf535a26cf813;hp=715c407cd7e3803968b5e113523b3a364ea4334b;hb=838bc00015eb7f583c7cf4b3b1007697bf047da1;hpb=79b5f738f2e38acb60cda7e09f54802933a17105 diff --git a/src/video.cc b/src/video.cc index 715c407..7ad8efc 100644 --- a/src/video.cc +++ b/src/video.cc @@ -30,6 +30,7 @@ #include "serializable.hh" #include "settings.hh" +#include "dispatcher.hh" #include "video.hh" @@ -93,6 +94,7 @@ void video::recreateContext() SDL_FreeSurface(context_); context_ = 0; setVideoMode(attribs_.mode); + dc::dispatcher::instance().dispatch("video.context_recreated"); } void video::setOpenGLAttributes() @@ -338,10 +340,12 @@ video::attributes::attributes() settings::instance().get("video.fullscreen", fullscreen); settings::instance().get("video.resizable", resizable); - settings::instance().get("video.cursor", cursorVisible); - settings::instance().get("video.grab", cursorGrab); + settings::instance().get("video.showcursor", cursorVisible); + settings::instance().get("input.grab", cursorGrab); } } // namespace dc +/** vim: set ts=4 sw=4 tw=80: *************************************************/ +