</ImportGroup>\r
<PropertyGroup Label="UserMacros" />\r
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
- <IncludePath>..\..\include;$(IncludePath)</IncludePath>\r
+ <IncludePath>..\..\include;..\..\lib\include;$(IncludePath)</IncludePath>\r
</PropertyGroup>\r
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
- <LibraryPath>$(LibraryPath)</LibraryPath>\r
+ <LibraryPath>..\..\lib\lib;$(LibraryPath)</LibraryPath>\r
<SourcePath>../../src;../../include;$(SourcePath)</SourcePath>\r
</PropertyGroup>\r
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
// 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 !";
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;
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;