Fix for Alt-Enter on Brad code (nw)

This commit is contained in:
Miodrag Milanovic 2016-04-25 17:34:47 +02:00
parent 9c2ef88573
commit a301260017
2 changed files with 4 additions and 4 deletions

View File

@ -358,7 +358,7 @@ win_window_info::win_window_info(
m_isminimized(0),
m_ismaximized(0),
m_monitor(monitor),
//m_fullscreen(0),
m_fullscreen(!video_config.windowed),
m_fullscreen_safe(0),
m_aspect(0),
m_target(nullptr),
@ -1977,7 +1977,7 @@ void win_window_info::set_fullscreen(int fullscreen)
// if we're in the right state, punt
if (this->fullscreen() == fullscreen)
return;
video_config.windowed = !fullscreen;
m_fullscreen = fullscreen;
// kill off the drawers
m_renderer.reset();

View File

@ -53,7 +53,7 @@ public:
running_machine &machine() const override { return m_machine; }
virtual render_target *target() override { return m_target; }
int fullscreen() const override { return !video_config.windowed; }
int fullscreen() const override { return m_fullscreen; }
void update();
@ -111,7 +111,7 @@ public:
// monitor info
osd_monitor_info * m_monitor;
//int m_fullscreen;
int m_fullscreen;
int m_fullscreen_safe;
float m_aspect;