mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
🩹 fix: apply requests
This commit is contained in:
parent
e1adfd264e
commit
3d500c1b1d
@ -665,7 +665,7 @@ MxResult IsleApp::SetupWindow()
|
|||||||
SDL_SetCursor(m_cursorCurrent);
|
SDL_SetCursor(m_cursorCurrent);
|
||||||
if (g_isle->GetDrawCursor()) {
|
if (g_isle->GetDrawCursor()) {
|
||||||
SDL_HideCursor();
|
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) {
|
if (!arrow_stream) {
|
||||||
SDL_LogError(
|
SDL_LogError(
|
||||||
SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LOG_CATEGORY_APPLICATION,
|
||||||
@ -674,7 +674,7 @@ MxResult IsleApp::SetupWindow()
|
|||||||
);
|
);
|
||||||
return FAILURE;
|
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) {
|
if (!busy_stream) {
|
||||||
SDL_LogError(
|
SDL_LogError(
|
||||||
SDL_LOG_CATEGORY_APPLICATION,
|
SDL_LOG_CATEGORY_APPLICATION,
|
||||||
@ -683,7 +683,7 @@ MxResult IsleApp::SetupWindow()
|
|||||||
);
|
);
|
||||||
return FAILURE;
|
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) {
|
if (!no_stream) {
|
||||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to open SDL_IOStream for no cursor: %s", SDL_GetError());
|
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Failed to open SDL_IOStream for no cursor: %s", SDL_GetError());
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
|
|||||||
@ -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,
|
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, 0x7c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00,
|
||||||
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10,
|
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10,
|
||||||
|
|||||||
@ -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,
|
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, 0x7c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00,
|
||||||
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10,
|
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10,
|
||||||
|
|||||||
@ -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,
|
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, 0x7c, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20, 0x00,
|
||||||
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10,
|
0x00, 0x00, 0x01, 0x00, 0x20, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user