From: Thomas Pietrzak Date: Tue, 24 May 2011 14:49:01 +0000 (+0000) Subject: autores X-Git-Url: https://git.thomaspietrzak.com/?a=commitdiff_plain;h=4719304530689a33a4b74d2b237dd52284c59ddb;p=hapticmetronome.git autores git-svn-id: svn+ssh://thomaspietrzak.com/var/svn/rep@16 47cf9a05-e0a8-4ed5-9e9b-101a649bc004 --- diff --git a/Haptic Metronome/Haptic Metronome/Haptic Metronome.vcxproj b/Haptic Metronome/Haptic Metronome/Haptic Metronome.vcxproj index 81f38c5..0161ee4 100644 --- a/Haptic Metronome/Haptic Metronome/Haptic Metronome.vcxproj +++ b/Haptic Metronome/Haptic Metronome/Haptic Metronome.vcxproj @@ -37,10 +37,10 @@ - ..\..\include;$(IncludePath) + ..\..\include;..\..\lib\include;$(IncludePath) - $(LibraryPath) + ..\..\lib\lib;$(LibraryPath) ../../src;../../include;$(SourcePath) diff --git a/src/PaintGame.cpp b/src/PaintGame.cpp index bec5368..b0763da 100644 --- a/src/PaintGame.cpp +++ b/src/PaintGame.cpp @@ -59,7 +59,7 @@ void init() // int width, height; // we search for the available screen sizes - int searchflags = SDL_HWSURFACE;// | SDL_FULLSCREEN; + int searchflags = SDL_HWSURFACE | SDL_FULLSCREEN; SDL_Rect **modes = SDL_ListModes(NULL, searchflags); if (modes == NULL) throw "Impossible to get the screen resolution !"; @@ -76,7 +76,8 @@ void init() for (i=0 ; modes[i] ; i++) { cout << "Resolution available: " << modes[i]->w << "x" << modes[i]->h << endl; - if (modes[i]->w== 1600 && modes[i]->h == 900) //> resolution_x)// + //if (modes[i]->w== 1600 && modes[i]->h == 900) //> resolution_x)// + if (modes[i]->w * modes[i]->h > resolution_x * resolution_x) { resolution_x = modes[i]->w; resolution_y = modes[i]->h; @@ -142,10 +143,10 @@ void init() int flags = SDL_OPENGL | SDL_FULLSCREEN; SDL_Surface * screen; // if (!(screen = SDL_SetVideoMode(resolution_x, resolution_y, 0, flags))) - if (!(screen = SDL_SetVideoMode(0, 0, 0, flags))) + if (!(screen = SDL_SetVideoMode(resolution_x, resolution_y, 0, flags))) throw "Impossible to change the video mode"; - resolution_x = 1600; - resolution_y = 900; +// resolution_x = 1600; +// resolution_y = 900; GLdouble ratio = (GLdouble) screen->w / screen->h;