🩹 fix: apply requests

This commit is contained in:
Helloyunho 2025-07-03 04:41:26 +09:00
parent e1adfd264e
commit 3d500c1b1d
No known key found for this signature in database
GPG Key ID: 6AFA210B0150BE47
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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,

View File

@ -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,

View File

@ -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,