diff --git a/src/pipboy.cc b/src/pipboy.cc index b9a67e78..cd8d0640 100644 --- a/src/pipboy.cc +++ b/src/pipboy.cc @@ -501,13 +501,14 @@ int pipboyOpen(int intent) return 0; } - ScopedGameMode gm(GameMode::kPipboy); - intent = pipboyWindowInit(intent); if (intent == -1) { return -1; } + ScopedGameMode gm(GameMode::kPipboy); + windowRefresh(gPipboyWindow); + touch_set_touchscreen_mode(true); mouseGetPositionInWindow(gPipboyWindow, &gPipboyPreviousMouseX, &gPipboyPreviousMouseY);