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:
parent
4130116a85
commit
e0941828f5
|
@ -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)
|
||||
|
|
|
@ -177,7 +177,7 @@ public:
|
|||
|
||||
class InputConfigDialog;
|
||||
|
||||
class GamepadPage : public wxNotebookPage
|
||||
class GamepadPage : public wxPanel
|
||||
{
|
||||
friend class InputConfigDialog;
|
||||
friend class ControlDialog;
|
||||
|
|
Loading…
Reference in New Issue