Fix --opengl-render option. Please NEVER use this option though
This commit is contained in:
parent
63ac47a270
commit
ce55c8e58b
@ -187,13 +187,13 @@ std::string ClipboardPull()
|
|||||||
return clipboardText;
|
return clipboardText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int mousex = 0, mousey = 0;
|
||||||
#ifdef OGLI
|
#ifdef OGLI
|
||||||
void blit()
|
void blit()
|
||||||
{
|
{
|
||||||
SDL_GL_SwapBuffers();
|
SDL_GL_SwapBuffers();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
int mousex = 0, mousey = 0;
|
|
||||||
void DrawPixel(pixel * vid, pixel color, int x, int y)
|
void DrawPixel(pixel * vid, pixel color, int x, int y)
|
||||||
{
|
{
|
||||||
if (x >= 0 && x < WINDOWW && y >= 0 && y < WINDOWH)
|
if (x >= 0 && x < WINDOWW && y >= 0 && y < WINDOWH)
|
||||||
|
@ -1012,8 +1012,8 @@ void Renderer::DrawSigns()
|
|||||||
x += dx;
|
x += dx;
|
||||||
y += dy;
|
y += dy;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#ifdef OGLR
|
#ifdef OGLR
|
||||||
glTranslated(0, -MENUSIZE, 0);
|
glTranslated(0, -MENUSIZE, 0);
|
||||||
|
@ -214,8 +214,8 @@ void SignWindow::DoDraw()
|
|||||||
x+=dx;
|
x+=dx;
|
||||||
y+=dy;
|
y+=dy;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(!signMoving)
|
if(!signMoving)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user