Browse Source

undo unicode

pull/5232/head
Saksham Goyal 6 days ago
parent
commit
87097abf54
No known key found for this signature in database GPG Key ID: 287D96BB5977A168
3 changed files with 4 additions and 5 deletions
  1. +2
    -2
      src/external/RGFW.h
  2. +0
    -1
      src/rcore.c
  3. +2
    -2
      src/rmodels.c

+ 2
- 2
src/external/RGFW.h View File

@ -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); 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_TRUE;
return RGFW_FALSE; return RGFW_FALSE;
} else return RGFW_FALSE; } else return RGFW_FALSE;

+ 0
- 1
src/rcore.c View File

@ -553,7 +553,6 @@ const char *TextFormat(const char *text, ...); // Formatting of text with variab
// #endif // #endif
#endif // SUPPORT_CLIPBOARD_IMAGE #endif // SUPPORT_CLIPBOARD_IMAGE
#define UNICODE
// Include platform-specific submodules // Include platform-specific submodules
#if defined(PLATFORM_DESKTOP_GLFW) #if defined(PLATFORM_DESKTOP_GLFW)
#include "platforms/rcore_desktop_glfw.c" #include "platforms/rcore_desktop_glfw.c"

+ 2
- 2
src/rmodels.c View File

@ -5209,7 +5209,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat
void *data = NULL; void *data = NULL;
#ifdef __cplusplus #ifdef __cplusplus
cgltf_options options = {n">DEFINIT};
cgltf_options options = {};
#else #else
cgltf_options options = { 0 }; cgltf_options options = { 0 };
#endif #endif
@ -6246,7 +6246,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, int *animCo
// glTF data loading // glTF data loading
#ifdef __cplusplus #ifdef __cplusplus
cgltf_options options = {n">DEFINIT};
cgltf_options options = {};
#else #else
cgltf_options options = { 0 }; cgltf_options options = { 0 };
#endif #endif

Loading…
Cancel
Save