glViewport(0,0,(int) global->sys_glWidth,(int) global->sys_glHeight);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
- gluOrtho2D(0,global->sys_glWidth,0,global->sys_glHeight);
+ glOrtho(0,global->sys_glWidth,0,global->sys_glHeight,-1,1);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
- glClearColor(0.0,0.0,0.0,1.0);
glClear(GL_COLOR_BUFFER_BIT);
glEnableClientState(GL_COLOR_ARRAY);
glViewport(0.0, 0.0, width, height);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
- gluOrtho2D(0, width, 0, height);
+ glOrtho(0, width, 0, height,-1,1);
glMatrixMode(GL_MODELVIEW);
-
- glClearColor(0.0, 0.0, 0.0, 1.0);
glClear(GL_COLOR_BUFFER_BIT);
-
glFlush();
-
GLResize(global, (float)width, (float)height);
}