From ce751fef1ddaf3c6f3d26c1a32e1a02f14609d90 Mon Sep 17 00:00:00 2001 From: DepressedTWM Date: Wed, 3 Jun 2026 12:18:02 -0400 Subject: [PATCH] meow --- scripts/Window_DebugRight.rb | 2 +- src/font.cpp | 3 +-- src/input.cpp | 5 +---- src/main.cpp | 1 - 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/Window_DebugRight.rb b/scripts/Window_DebugRight.rb index ce1d175..fbc350c 100644 --- a/scripts/Window_DebugRight.rb +++ b/scripts/Window_DebugRight.rb @@ -14,7 +14,7 @@ class Window_DebugRight < Window_Selectable # * Object Initialization #-------------------------------------------------------------------------- def initialize - super(192, 0, 448, 352) + super(192, 0, 448, Graphics.height) self.contents = Bitmap.new(width - 32, height - 32) self.index = -1 self.active = false diff --git a/src/font.cpp b/src/font.cpp index 70a85af..5c77fb0 100644 --- a/src/font.cpp +++ b/src/font.cpp @@ -101,8 +101,7 @@ void SharedFontState::initFontSetCB(SDL_IOStream* &ops, const std::string &filen set.other = filename; } -TTF_Font *SharedFontState::getFont(std::string family, int size){ - char msg[512]; +TTF_Font *SharedFontState::getFont(std::string family, unsigned int size){ if (family.empty()) family = "Terminus (TTF)"; // terminus hardcoded :3c diff --git a/src/input.cpp b/src/input.cpp index 6a8bd3d..7f5cab2 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -646,10 +646,7 @@ void Input::update(){ p->repeatCount++; bool repeated; - if (rgssVer >= 2) - repeated = p->repeatCount >= 23 && ((p->repeatCount+1) % 6) == 0; - else - repeated = p->repeatCount >= 15 && ((p->repeatCount+1) % 4) == 0; + repeated = p->repeatCount >= 15 && ((p->repeatCount+1) % 4) == 0; p->getState(p->repeating).repeated |= repeated; diff --git a/src/main.cpp b/src/main.cpp index 6035f19..6ea6f12 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -212,7 +212,6 @@ static void setGamePathInRegistry() { //TODO handle this for Linux/Mac } int main(int argc, char *argv[]){ - char msg[512]; SecurityManagerInit(); loadLanguageMetadata(); //there will be a segfault on fclose if I don't move it here