diff options
Diffstat (limited to 'src/osd/sdl/video.cpp')
-rw-r--r-- | src/osd/sdl/video.cpp | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/src/osd/sdl/video.cpp b/src/osd/sdl/video.cpp index 08938b99511..582836f0c8e 100644 --- a/src/osd/sdl/video.cpp +++ b/src/osd/sdl/video.cpp @@ -91,16 +91,6 @@ bool sdl_osd_interface::video_init() return true; } - -//============================================================ -// get_slider_list -//============================================================ - -slider_state *sdl_osd_interface::get_slider_list() -{ - return m_sliders; -} - //============================================================ // video_exit //============================================================ @@ -116,6 +106,11 @@ void sdl_osd_interface::video_exit() // sdlvideo_monitor_refresh //============================================================ +inline osd_rect SDL_Rect_to_osd_rect(const SDL_Rect &r) +{ + return osd_rect(r.x, r.y, r.w, r.h); +} + void sdl_monitor_info::refresh() { SDL_DisplayMode dmode; @@ -294,10 +289,19 @@ static void check_osd_inputs(running_machine &machine) } } + if (machine.ui_input().pressed(IPT_OSD_2)) + { + //FIXME: on a per window basis + video_config.fullstretch = !video_config.fullstretch; + window->target()->set_scale_mode(video_config.fullstretch? SCALE_FRACTIONAL : SCALE_INTEGER); + machine.ui().popup_time(1, "Uneven stretch %s", video_config.fullstretch? "enabled":"disabled"); + } + if (machine.ui_input().pressed(IPT_OSD_4)) { //FIXME: on a per window basis video_config.keepaspect = !video_config.keepaspect; + window->target()->set_keepaspect(video_config.keepaspect); machine.ui().popup_time(1, "Keepaspect %s", video_config.keepaspect? "enabled":"disabled"); } @@ -333,6 +337,7 @@ void sdl_osd_interface::extract_video_config() 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 |