Группа :: Игры/Обучающие
Пакет: powdertoy
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: powdertoy-88.1.272-alt-xinit.patch
Скачать
Скачать
--- src/PowderToySDL.cpp.orig 2013-08-26 14:26:31.759093478 +0000
+++ src/PowderToySDL.cpp 2013-08-26 14:28:27.868160462 +0000
@@ -380,6 +380,9 @@
int frameStart = SDL_GetTicks();
float frameTime;
float frameTimeAvg = 0.0f, correctedFrameTimeAvg = 0.0f;
+#ifdef OGLI
+ float ratio, width, height;
+#endif
SDL_Event event;
while(engine->Running())
{
@@ -423,9 +426,9 @@
#ifdef OGLI
case SDL_VIDEORESIZE:
{
- float ratio = float(XRES+BARSIZE) / float(YRES+MENUSIZE);
- float width = event.resize.w;
- float height = width/ratio;
+ ratio = float(XRES+BARSIZE) / float(YRES+MENUSIZE);
+ width = event.resize.w;
+ height = width/ratio;
sdl_scrn = SDL_SetVideoMode(event.resize.w, height, 32, SDL_OPENGL | SDL_RESIZABLE);