summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/osdwindow.h
diff options
context:
space:
mode:
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
commit7d84852db673849427ddca37d8e5b91a6078ee7c (patch)
tree290be8f9c39806e58b4b2cac4b645dd1a6cc8cfc /src/osd/modules/osdwindow.h
parentf8edcb7c2ef6a6ae0db045c9886a49468d08d4aa (diff)
Remove keepaspect and fullstretch members of osd_video_config
Diffstat (limited to 'src/osd/modules/osdwindow.h')
-rw-r--r--src/osd/modules/osdwindow.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/osd/modules/osdwindow.h b/src/osd/modules/osdwindow.h
index 3fe020c56fe..7126b909d97 100644
--- a/src/osd/modules/osdwindow.h
+++ b/src/osd/modules/osdwindow.h
@@ -105,6 +105,15 @@ public:
return orientation_swap_xy ^ rotation_swap_xy;
};
+ bool keepaspect()
+ {
+ render_target *target = this->target();
+ if (target != nullptr)
+ return target->keepaspect();
+ else
+ return machine().options().keep_aspect();
+ }
+
virtual osd_dim get_size() = 0;
virtual osd_monitor_info *monitor() const = 0;
@@ -253,9 +262,7 @@ struct osd_video_config
// global configuration
int windowed; // start windowed?
int prescale; // prescale factor
- int keepaspect; // keep aspect ratio
int numscreens; // number of screens
- int fullstretch; // fractional stretch
// hardware options
int mode; // output mode