]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Video.cc
cleaned up interpolator classes
[chaz/yoink] / src / Moof / Video.cc
index 9e74acbf2b75dae0b09cb53f17883ed1eb4063b8..62addb406dc804b7a31644ef586b3a43b3dd1dce 100644 (file)
@@ -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 "
This page took 0.019822 seconds and 4 git commands to generate.