diff --git a/src/external/RGFW.h b/src/external/RGFW.h index c8f0b1f9e..7205bf9d8 100644 --- a/src/external/RGFW.h +++ b/src/external/RGFW.h @@ -7727,8 +7727,8 @@ RGFW_bool RGFW_monitor_requestMode(RGFW_monitor mon, RGFW_monitorMode mode, RGFW dm.dmBitsPerPel = (DWORD)(mode.red + mode.green + mode.blue); } - if (ChangeDisplaySettingsEx((LPCWSTR)dd.DeviceName, (DEVMODEW *)&dm, NULL, CDS_TEST, NULL) == DISP_CHANGE_SUCCESSFUL) { - if (ChangeDisplaySettingsEx((LPCWSTR)dd.DeviceName, (DEVMODEW *)&dm, NULL, CDS_UPDATEREGISTRY, NULL) == DISP_CHANGE_SUCCESSFUL) + if (ChangeDisplaySettingsExA((LPCSTR)dd.DeviceName, (DEVMODE *)&dm, NULL, CDS_TEST, NULL) == DISP_CHANGE_SUCCESSFUL) { + if (ChangeDisplaySettingsExA((LPCSTR)dd.DeviceName, (DEVMODE *)&dm, NULL, CDS_UPDATEREGISTRY, NULL) == DISP_CHANGE_SUCCESSFUL) return RGFW_TRUE; return RGFW_FALSE; } else return RGFW_FALSE; diff --git a/src/rcore.c b/src/rcore.c index 32b55e36b..91daea9fd 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -553,7 +553,6 @@ const char *TextFormat(const char *text, ...); // Formatting of text with variab // #endif #endif // SUPPORT_CLIPBOARD_IMAGE -#define UNICODE // Include platform-specific submodules #if defined(PLATFORM_DESKTOP_GLFW) #include "platforms/rcore_desktop_glfw.c" diff --git a/src/rmodels.c b/src/rmodels.c index 3c6d39010..d4e8ea87d 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -5209,7 +5209,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat void *data = NULL; #ifdef __cplusplus - cgltf_options options = {DEFINIT}; + cgltf_options options = {}; #else cgltf_options options = { 0 }; #endif @@ -6246,7 +6246,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, int *animCo // glTF data loading #ifdef __cplusplus - cgltf_options options = {DEFINIT}; + cgltf_options options = {}; #else cgltf_options options = { 0 }; #endif