Cameron Hart 14 лет назад
Родитель
Сommit
f19a328069
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      Core/Contents/Include/PolySDLCore.h
  2. 2 2
      Core/Contents/Source/PolySDLCore.cpp

+ 1 - 1
Core/Contents/Include/PolySDLCore.h

@@ -47,7 +47,7 @@ namespace Polycode {
 		void enableMouse(bool newval);
 		unsigned int getTicks();
 		bool Update();
-		void setVideoMode(int xRes, int yRes, bool fullScreen, int aaLevel);
+		void setVideoMode(int xRes, int yRes, bool fullScreen, bool vSync, int aaLevel, int anisotropyLevel);
 		void createThread(Threaded *target);
 		std::vector<Rectangle> getVideoModes();
 		

+ 2 - 2
Core/Contents/Source/PolySDLCore.cpp

@@ -53,7 +53,7 @@ SDLCore::SDLCore(PolycodeView *view, int xRes, int yRes, bool fullScreen, bool v
 	renderer = new OpenGLRenderer();
 	services->setRenderer(renderer);
 
-	setVideoMode(xRes, yRes, fullScreen, aaLevel);
+	setVideoMode(xRes, yRes, fullScreen, vSync, aaLevel, anisotropyLevel);
 	SDL_WM_SetCaption(windowTitle->c_str(), windowTitle->c_str());
 	
 	SDL_EnableUNICODE(1);
@@ -63,7 +63,7 @@ SDLCore::SDLCore(PolycodeView *view, int xRes, int yRes, bool fullScreen, bool v
 	CoreServices::getInstance()->installModule(new GLSLShaderModule());	
 }
 
-void SDLCore::setVideoMode(int xRes, int yRes, bool fullScreen, int aaLevel) {	
+void SDLCore::setVideoMode(int xRes, int yRes, bool fullScreen, bool vSync, int aaLevel, int anisotropyLevel) {
 	SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 24);	
 	SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1);			
 	SDL_GL_SetAttribute( SDL_GL_RED_SIZE,   8);