Fix uglies on gcpad/wiimote config pages.

Use wxPanel in place of wxNotebookPage (which is really just a typedef for wxWindow). This applies the correct background color for the page.
This commit is contained in:
Shawn Hoffman 2012-03-23 00:27:54 -07:00
parent 4130116a85
commit e0941828f5
2 changed files with 2 additions and 2 deletions

View File

@ -887,7 +887,7 @@ ControlGroupsSizer::ControlGroupsSizer(ControllerEmu* const controller, wxWindow
}
GamepadPage::GamepadPage(wxWindow* parent, InputPlugin& plugin, const unsigned int pad_num, InputConfigDialog* const config_dialog)
: wxNotebookPage(parent, -1 , wxDefaultPosition, wxDefaultSize)
: wxPanel(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize)
,controller(plugin.controllers[pad_num])
, m_config_dialog(config_dialog)
, m_plugin(plugin)

View File

@ -177,7 +177,7 @@ public:
class InputConfigDialog;
class GamepadPage : public wxNotebookPage
class GamepadPage : public wxPanel
{
friend class InputConfigDialog;
friend class ControlDialog;