Skip to content

Commit

Permalink
Fix --opengl-render option. Please NEVER use this option though
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed May 14, 2016
1 parent 63ac47a commit ce55c8e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PowderToySDL.cpp
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/Renderer.cpp
Expand Up @@ -1012,8 +1012,8 @@ void Renderer::DrawSigns()
x += dx;
y += dy;
}
}
#endif
}
}
#ifdef OGLR
glTranslated(0, -MENUSIZE, 0);
Expand Down
2 changes: 1 addition & 1 deletion src/gui/game/SignTool.cpp
Expand Up @@ -214,8 +214,8 @@ void SignWindow::DoDraw()
x+=dx;
y+=dy;
}
}
#endif
}
}
if(!signMoving)
{
Expand Down

0 comments on commit ce55c8e

Please sign in to comment.