From 573aaca70b68e111dfdfffb5aea51e9987fb3c4b Mon Sep 17 00:00:00 2001 From: bgk Date: Sun, 20 Feb 2011 10:38:42 +0000 Subject: [PATCH] GTK: Don't reset the renderer when entering the display config dialog --- src/gtk/displayconfig.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gtk/displayconfig.cpp b/src/gtk/displayconfig.cpp index 671de87a..c18e8815 100644 --- a/src/gtk/displayconfig.cpp +++ b/src/gtk/displayconfig.cpp @@ -122,11 +122,14 @@ void DisplayConfigDialog::vOnOutputChanged(VBA::Window::EVideoOutput _eOutput) return; if (_eOutput == VBA::Window::OutputOpenGL && m_poOutputOpenGLRadioButton->get_active()) + { m_poConfig->vSetKey("output", VBA::Window::OutputOpenGL); - else if (_eOutput == VBA::Window::OutputCairo && m_poOutputCairoRadioButton->get_active()) + m_poWindow->vApplyConfigScreenArea(); + } else if (_eOutput == VBA::Window::OutputCairo && m_poOutputCairoRadioButton->get_active()) + { m_poConfig->vSetKey("output", VBA::Window::OutputCairo); - - m_poWindow->vApplyConfigScreenArea(); + m_poWindow->vApplyConfigScreenArea(); + } } void DisplayConfigDialog::vOnScaleChanged()