mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Crashfix in EmuScreen (touch events before booting)
This commit is contained in:
1 parent
574181e2fa
commit
fe090e8d95
1 file changed
+6
-4
+6
-4
@@ -198,7 +198,8 @@ inline float clamp1(float x) {
|
||||
}
|
||||
|
||||
void EmuScreen::touch(const TouchInput &touch) {
|
||||
root_->Touch(touch);
|
||||
if (root_)
|
||||
root_->Touch(touch);
|
||||
}
|
||||
|
||||
void EmuScreen::onVKeyDown(int virtualKeyCode) {
|
||||
@@ -496,9 +497,10 @@ void EmuScreen::render() {
|
||||
|
||||
float touchOpacity = g_Config.iTouchButtonOpacity / 100.0f;
|
||||
|
||||
UI::LayoutViewHierarchy(*screenManager()->getUIContext(), root_);
|
||||
root_->Draw(*screenManager()->getUIContext());
|
||||
|
||||
if (root_) {
|
||||
UI::LayoutViewHierarchy(*screenManager()->getUIContext(), root_);
|
||||
root_->Draw(*screenManager()->getUIContext());
|
||||
}
|
||||
DrawWatermark();
|
||||
|
||||
if (!osm.IsEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user