From f7ab2765aae6819141d682f7b957e1b4d4031cc0 Mon Sep 17 00:00:00 2001 From: ZakatTeamI2P Date: Mon, 30 Mar 2026 20:53:04 +0400 Subject: [PATCH] Kill me x2 --- src/settingsmenu.h | 2 +- src/soundemitter.cpp | 6 +++--- src/sprite.cpp | 4 ++-- src/steam.cpp | 2 +- src/tilemap.cpp | 2 +- src/viewport.cpp | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/settingsmenu.h b/src/settingsmenu.h index 836111c..cc06619 100644 --- a/src/settingsmenu.h +++ b/src/settingsmenu.h @@ -25,7 +25,7 @@ #include #include -#include +#include struct SettingsMenuPrivate; struct RGSSThreadData; diff --git a/src/soundemitter.cpp b/src/soundemitter.cpp index 74eaf03..2f692c0 100644 --- a/src/soundemitter.cpp +++ b/src/soundemitter.cpp @@ -28,7 +28,7 @@ #include "util.h" #include "debugwriter.h" -#include +#include #define SE_CACHE_MEM (10*1024*1024) // 10 MB @@ -192,13 +192,13 @@ struct SoundOpenHandler : FileSystem::OpenHandler : buffer(0) {} - bool tryRead(SDL_RWops &ops, const char *ext) + bool tryRead(SDL_IOStream &ops, const char *ext) { Sound_Sample *sample = Sound_NewSample(&ops, ext, 0, STREAM_BUF_SIZE); if (!sample) { - SDL_RWclose(&ops); + SDL_CloseIO(&ops); return false; } diff --git a/src/sprite.cpp b/src/sprite.cpp index 95b0c85..fb4b5c4 100644 --- a/src/sprite.cpp +++ b/src/sprite.cpp @@ -38,7 +38,7 @@ #include -#include +#include #include @@ -201,7 +201,7 @@ struct SpritePrivate self.w = bitmap->width(); self.h = bitmap->height(); - isVisible = SDL_HasIntersection(&self, &sceneRect); + isVisible = SDL_HasRectIntersection(&self, &sceneRect); } void emitWaveChunk(SVertex *&vert, float phase, int width, diff --git a/src/steam.cpp b/src/steam.cpp index 744af79..fdb4a1b 100644 --- a/src/steam.cpp +++ b/src/steam.cpp @@ -2,7 +2,7 @@ #include "debugwriter.h" #include -#include +#include #include "steamshim/steamshim_child.h" /* Achievements */ diff --git a/src/tilemap.cpp b/src/tilemap.cpp index af3078d..d6f37d1 100644 --- a/src/tilemap.cpp +++ b/src/tilemap.cpp @@ -46,7 +46,7 @@ #include #include -#include +#include extern const StaticRect autotileRects[]; diff --git a/src/viewport.cpp b/src/viewport.cpp index fe4131f..94d02c6 100644 --- a/src/viewport.cpp +++ b/src/viewport.cpp @@ -28,7 +28,7 @@ #include "glstate.h" #include "graphics.h" -#include +#include #include @@ -87,7 +87,7 @@ struct ViewportPrivate rect->width, rect->height }; SDL_Rect result; - isOnScreen = SDL_IntersectRect(&r1, &r2, &result); + isOnScreen = SDL_GetRectIntersection(&r1, &r2, &result); } bool needsEffectRender(bool flashing)