Skip to content

Commit 85f2d46

Browse files
committed
fix android touch + add font size var
1 parent 925c278 commit 85f2d46

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

src/DevTools.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void DevTools::setup() {
188188
this->setupPlatform();
189189

190190
#ifdef GEODE_IS_MOBILE
191-
ImGui::GetIO().FontGlobalScale = 3.f;
191+
ImGui::GetIO().FontGlobalScale = 2.f;
192192
ImGui::GetStyle().ScrollbarSize = 60.f;
193193
#endif
194194
}
@@ -199,6 +199,10 @@ void DevTools::show(bool visible) {
199199

200200
void DevTools::toggle() {
201201
this->show(!m_visible);
202+
if (!m_visible) {
203+
ImGui::GetIO().WantCaptureMouse = false;
204+
ImGui::GetIO().WantCaptureKeyboard = false;
205+
}
202206
}
203207

204208
void DevTools::sceneChanged() {

src/pages/Settings.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ void DevTools::drawSettings() {
6262

6363
ImGui::Separator();
6464

65+
ImGui::DragFloat("Font Size", &ImGui::GetIO().FontGlobalScale, 0.01f, 1.0f, 3.0f);
66+
67+
ImGui::Separator();
68+
6569
ImGui::Text("GD Window");
6670

6771
// TODO: undo later

0 commit comments

Comments
 (0)