# HG changeset patch # User nemo # Date 1315870218 14400 # Node ID a6d76478690506857942c86d1347ad8cbaa19e18 # Parent 59716ac2fe4d34a98fae11d8464c5ff180b00ed1 Disable GL SetAttributes for Windows due to many testers with problems. This restores .15 behaviour. If we can find willing testers, perhaps we can narrow down which attribute was the problem. Also reenable F12 bind for Windows. diff -r 59716ac2fe4d -r a6d764786905 QTfrontend/binds.cpp --- a/QTfrontend/binds.cpp Mon Sep 12 16:51:45 2011 -0400 +++ b/QTfrontend/binds.cpp Mon Sep 12 19:30:18 2011 -0400 @@ -62,9 +62,7 @@ {"confirm", "y", QT_TRANSLATE_NOOP("binds", "confirmation"), NULL, NULL}, {"+voldown", "9", QT_TRANSLATE_NOOP("binds", "volume down"), NULL, QT_TRANSLATE_NOOP("binds (descriptions)", "Modify the game's volume while playing:")}, {"+volup", "0", QT_TRANSLATE_NOOP("binds", "volume up"), NULL, NULL}, -#ifndef _WIN32 {"fullscr", "f12", QT_TRANSLATE_NOOP("binds", "change mode"), NULL, QT_TRANSLATE_NOOP("binds (descriptions)", "Toggle fullscreen mode:")}, -#endif {"capture", "c", QT_TRANSLATE_NOOP("binds", "capture"), NULL, QT_TRANSLATE_NOOP("binds (descriptions)", "Take a screenshot:")}, {"rotmask", "delete", QT_TRANSLATE_NOOP("binds", "hedgehogs\ninfo"), NULL, QT_TRANSLATE_NOOP("binds (descriptions)", "Toggle labels above hedgehogs:")} }; diff -r 59716ac2fe4d -r a6d764786905 hedgewars/uStore.pas --- a/hedgewars/uStore.pas Mon Sep 12 16:51:45 2011 -0400 +++ b/hedgewars/uStore.pas Mon Sep 12 19:30:18 2011 -0400 @@ -992,7 +992,13 @@ end; // these attributes must be set up before creating the sdl window +{$IFNDEF WIN32} +(* On a large number of testers machines, SDL default to software rendering when opengl attributes were set. + These attributes were "set" after CreateWindow in .15, which probably did nothing. + IMO we should rely on the gl_config defaults from SDL, and use SDL_GL_GetAttribute to possibly post warnings if any + bad values are set. *) SetupOpenGLAttributes(); +{$ENDIF} {$IFDEF SDL13} // these values in x and y make the window appear in the center x:= SDL_WINDOWPOS_CENTERED_MASK;