diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2020-12-16 23:31:53 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2020-12-16 23:31:53 -0500 |
commit | 7d84852db673849427ddca37d8e5b91a6078ee7c (patch) | |
tree | 290be8f9c39806e58b4b2cac4b645dd1a6cc8cfc /src/osd/sdl | |
parent | f8edcb7c2ef6a6ae0db045c9886a49468d08d4aa (diff) |
Remove keepaspect and fullstretch members of osd_video_config
Diffstat (limited to 'src/osd/sdl')
-rw-r--r-- | src/osd/sdl/video.cpp | 2 | ||||
-rw-r--r-- | src/osd/sdl/window.cpp | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/osd/sdl/video.cpp b/src/osd/sdl/video.cpp index c00d86cd03e..9d9e2e64d56 100644 --- a/src/osd/sdl/video.cpp +++ b/src/osd/sdl/video.cpp @@ -175,9 +175,7 @@ void sdl_osd_interface::extract_video_config() video_config.windowed = options().window(); video_config.prescale = options().prescale(); video_config.filter = options().filter(); - video_config.keepaspect = options().keep_aspect(); video_config.numscreens = options().numscreens(); - video_config.fullstretch = options().uneven_stretch(); #ifdef SDLMAME_X11 video_config.restrictonemonitor = !options().use_all_heads(); #endif diff --git a/src/osd/sdl/window.cpp b/src/osd/sdl/window.cpp index 712337b4dd7..b43d9299181 100644 --- a/src/osd/sdl/window.cpp +++ b/src/osd/sdl/window.cpp @@ -475,7 +475,7 @@ void sdl_window_info::destroy() // free the render target, after the textures! machine().render().target_free(m_target); - + m_target = nullptr; } @@ -681,9 +681,13 @@ int sdl_window_info::complete_create() temp = m_windowed_dim; } else if (m_startmaximized) - temp = get_max_bounds(video_config.keepaspect ); + { + temp = get_max_bounds(keepaspect()); + } else - temp = get_min_bounds(video_config.keepaspect ); + { + temp = get_min_bounds(keepaspect()); + } // create the window ..... |