From ce55c8e58ba1789be19e919b271616decdbd637f Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 14 May 2016 09:44:49 -0400 Subject: [PATCH] Fix --opengl-render option. Please NEVER use this option though --- src/PowderToySDL.cpp | 2 +- src/graphics/Renderer.cpp | 2 +- src/gui/game/SignTool.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index e8db4dd58..f96868024 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -187,13 +187,13 @@ std::string ClipboardPull() return clipboardText; } +int mousex = 0, mousey = 0; #ifdef OGLI void blit() { SDL_GL_SwapBuffers(); } #else -int mousex = 0, mousey = 0; void DrawPixel(pixel * vid, pixel color, int x, int y) { if (x >= 0 && x < WINDOWW && y >= 0 && y < WINDOWH) diff --git a/src/graphics/Renderer.cpp b/src/graphics/Renderer.cpp index 54a8752b3..6f3831657 100644 --- a/src/graphics/Renderer.cpp +++ b/src/graphics/Renderer.cpp @@ -1012,8 +1012,8 @@ void Renderer::DrawSigns() x += dx; y += dy; } - } #endif + } } #ifdef OGLR glTranslated(0, -MENUSIZE, 0); diff --git a/src/gui/game/SignTool.cpp b/src/gui/game/SignTool.cpp index 5c8a2fcfc..a2cc6964f 100644 --- a/src/gui/game/SignTool.cpp +++ b/src/gui/game/SignTool.cpp @@ -214,8 +214,8 @@ void SignWindow::DoDraw() x+=dx; y+=dy; } - } #endif + } } if(!signMoving) {