comparison src/video/SDL_renderer_gl.c @ 3324:0f19b2fa4125

-0.5 is causing trouble according to comments in bug #783
author Sam Lantinga <slouken@libsdl.org>
date Mon, 28 Sep 2009 15:32:58 +0000
parents 1ed5d432e468
children fe2f10481878
comparison
equal deleted inserted replaced
3323:8d0889509afb 3324:0f19b2fa4125
446 data->glMatrixMode(GL_PROJECTION); 446 data->glMatrixMode(GL_PROJECTION);
447 data->glLoadIdentity(); 447 data->glLoadIdentity();
448 data->glMatrixMode(GL_MODELVIEW); 448 data->glMatrixMode(GL_MODELVIEW);
449 data->glLoadIdentity(); 449 data->glLoadIdentity();
450 data->glViewport(0, 0, window->w, window->h); 450 data->glViewport(0, 0, window->w, window->h);
451 data->glOrtho(-0.5, (GLdouble) window->w-0.5, 451 data->glOrtho(0.0, (GLdouble) window->w,
452 (GLdouble) window->h-0.5, -0.5, 0.0, 1.0); 452 (GLdouble) window->h, 0.0, 0.0, 1.0);
453 data->updateSize = SDL_FALSE; 453 data->updateSize = SDL_FALSE;
454 } 454 }
455 return 0; 455 return 0;
456 } 456 }
457 457