aspect ratio correction
svn-id: r8897
This commit is contained in:
parent
a9ae95a64e
commit
6480a00855
1 changed files with 2 additions and 1 deletions
|
@ -577,8 +577,8 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
|
|||
return 1;
|
||||
} else if (param == PROP_TOGGLE_ASPECT_RATIO) {
|
||||
|
||||
_adjustAspectRatio ^= true;
|
||||
if (_usingOpenGL) {
|
||||
_adjustAspectRatio ^= true;
|
||||
if (!_adjustAspectRatio) {
|
||||
// Don't use the whole screen (black borders)
|
||||
fb2gl.init(0, 0, 0, 15, _glFlags);
|
||||
|
@ -617,6 +617,7 @@ uint32 OSystem_SDL_OpenGL::property(int param, Property *value) {
|
|||
} else {
|
||||
if (_screenHeight == 200) {
|
||||
assert(_hwscreen != 0);
|
||||
_adjustAspectRatio ^= true;
|
||||
hotswap_gfx_mode();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue