From 5a3a693c595a9c98236f465ff292db05dfa478de Mon Sep 17 00:00:00 2001 From: scawful Date: Fri, 26 Jan 2024 23:19:12 -0500 Subject: [PATCH] Set texture streaming flag to true by default --- src/app/core/common.h | 2 +- src/app/core/controller.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/core/common.h b/src/app/core/common.h index bf200171..505ec449 100644 --- a/src/app/core/common.h +++ b/src/app/core/common.h @@ -48,7 +48,7 @@ class ExperimentFlags { bool kLoadSystemFonts = true; // Uses texture streaming from SDL for my dynamic updates. - bool kLoadTexturesAsStreaming = false; + bool kLoadTexturesAsStreaming = true; // Save dungeon map edits to the ROM. bool kSaveDungeonMaps = false; diff --git a/src/app/core/controller.cc b/src/app/core/controller.cc index dd6177d4..139d2a4b 100644 --- a/src/app/core/controller.cc +++ b/src/app/core/controller.cc @@ -92,6 +92,7 @@ void HandleMouseMovement(int &wheel) { io.MousePos = ImVec2(static_cast(mouseX), static_cast(mouseY)); io.MouseDown[0] = buttons & SDL_BUTTON(SDL_BUTTON_LEFT); io.MouseDown[1] = buttons & SDL_BUTTON(SDL_BUTTON_RIGHT); + io.MouseDown[2] = buttons & SDL_BUTTON(SDL_BUTTON_MIDDLE); io.MouseWheel = static_cast(wheel); }