simulator: zoom in instead of out when aspect ratio not 1:1
This commit is contained in:
parent
2b8e0b251f
commit
088e8f7992
1 changed files with 1 additions and 1 deletions
|
@ -207,7 +207,7 @@ void key_gl(unsigned char key, int x, int y)
|
|||
|
||||
void resize_gl(int width, int height)
|
||||
{
|
||||
int min = width > height ? height : width;
|
||||
int min = width < height ? height : width;
|
||||
glViewport((width-min)/2, (height-min)/2, min, min);
|
||||
glMatrixMode(GL_PROJECTION);
|
||||
glLoadIdentity();
|
||||
|
|
Loading…
Add table
Reference in a new issue