X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FVideo.cc;h=62addb406dc804b7a31644ef586b3a43b3dd1dce;hp=9e74acbf2b75dae0b09cb53f17883ed1eb4063b8;hb=4f9eb9259092994de9690cf12f11437c35a6791e;hpb=987971a961454d97082c6448fdc0bbeb540281bb diff --git a/src/Moof/Video.cc b/src/Moof/Video.cc index 9e74acb..62addb4 100644 --- a/src/Moof/Video.cc +++ b/src/Moof/Video.cc @@ -131,15 +131,12 @@ void Video::setVideoMode(const long mode[3]) mAttribs.mode[1] = mode[1]; mAttribs.mode[2] = mode[2]; -#if defined(_WIN32) || defined(__WIN32__) - // on win32, creating a new context via SDL_SetVideoMode will wipe - // out the GL state, so we gotta notify everyone to reload their - // state after the change - core.dispatch("video.newcontext"); +#if !defined(linux) && !defined(__linux) && !defined(__linux__) logInfo("video context recreated"); + core.dispatch("video.newcontext"); #endif } - else throw Error(Error::SDL_VIDEOMODE); + else Error(Error::SDL_VIDEOMODE).raise(); } } @@ -383,8 +380,6 @@ Video::Attributes::Attributes() } else { - while (*(modes + 1)) ++modes; // skip to the last - mode[0] = (*modes)->w; mode[1] = (*modes)->h; Mf::logInfo << "choosing native resolution "