From 3d500c1b1dcede602a8e3a22cd50665e3ef8c5e2 Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Thu, 3 Jul 2025 04:41:26 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix:=20apply=20requests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ISLE/isleapp.cpp | 6 +++--- ISLE/res/arrow_bmp.h | 2 +- ISLE/res/busy_bmp.h | 2 +- ISLE/res/no_bmp.h | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index b7aaf292..f8315878 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -665,7 +665,7 @@ MxResult IsleApp::SetupWindow() SDL_SetCursor(m_cursorCurrent); if (g_isle->GetDrawCursor()) { SDL_HideCursor(); - SDL_IOStream* arrow_stream = SDL_IOFromMem(arrow_bmp, arrow_bmp_len); + SDL_IOStream* arrow_stream = SDL_IOFromConstMem(arrow_bmp, arrow_bmp_len); if (!arrow_stream) { SDL_LogError( SDL_LOG_CATEGORY_APPLICATION, @@ -674,7 +674,7 @@ MxResult IsleApp::SetupWindow() ); return FAILURE; } - SDL_IOStream* busy_stream = SDL_IOFromMem(busy_bmp, busy_bmp_len); + SDL_IOStream* busy_stream = SDL_IOFromConstMem(busy_bmp, busy_bmp_len); if (!busy_stream) { SDL_LogError( SDL_LOG_CATEGORY_APPLICATION, @@ -683,7 +683,7 @@ MxResult IsleApp::SetupWindow() ); return FAILURE; } - SDL_IOStream* no_stream = SDL_IOFromMem(no_bmp, no_bmp_len); + SDL_IOStream* no_stream = SDL_IOFromConstMem(no_bmp, no_bmp_len); if (!no_stream) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to open SDL_IOStream for no cursor: %s", SDL_GetError()); return FAILURE; diff --git a/ISLE/res/arrow_bmp.h b/ISLE/res/arrow_bmp.h index d26eecb5..429e53ca 100644 --- a/ISLE/res/arrow_bmp.h +++ b/ISLE/res/arrow_bmp.h @@ -1,4 +1,4 @@ -unsigned char arrow_bmp[] = { +const unsigned char arrow_bmp[] = { 0x42, 0x4d, 0x8a, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10, diff --git a/ISLE/res/busy_bmp.h b/ISLE/res/busy_bmp.h index aa31258d..563543e5 100644 --- a/ISLE/res/busy_bmp.h +++ b/ISLE/res/busy_bmp.h @@ -1,4 +1,4 @@ -unsigned char busy_bmp[] = { +const unsigned char busy_bmp[] = { 0x42, 0x4d, 0x8a, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10, diff --git a/ISLE/res/no_bmp.h b/ISLE/res/no_bmp.h index 6145e715..1d9ad33d 100644 --- a/ISLE/res/no_bmp.h +++ b/ISLE/res/no_bmp.h @@ -1,4 +1,4 @@ -unsigned char no_bmp[] = { +const unsigned char no_bmp[] = { 0x42, 0x4d, 0x8a, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x7c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10,