Remove more bad uses of dp_xres. Fix a data flow issue

(could end up with "feedback" if modifying the screen bounds)
This commit is contained in:
Henrik Rydgard committed 2014-02-10 15:55:21 +01:00
1 parent c6caff61bf
commit ca9d0ea5cf
8 files changed
+83 -66

No files matched your search

+3 -2
View File
@@ -453,8 +453,9 @@ void EmuScreen::processAxis(const AxisInput &axis, int direction) {
}
void EmuScreen::CreateViews() {
InitPadLayout();
root_ = CreatePadLayout(&pauseTrigger_);
const Bounds &bounds = screenManager()->getUIContext()->GetBounds();
InitPadLayout(bounds.w, bounds.h);
root_ = CreatePadLayout(bounds.w, bounds.h, &pauseTrigger_);
if (g_Config.bShowDeveloperMenu) {
root_->Add(new UI::Button("DevMenu"))->OnClick.Handle(this, &EmuScreen::OnDevTools);
}