Browse Source

fix?

pull/4480/head
ColleagueRiley 3 weeks ago
parent
commit
ae30613813
2 changed files with 9 additions and 9 deletions
  1. +8
    -8
      src/external/RGFW.h
  2. +1
    -1
      src/platforms/rcore_desktop_rgfw.c

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

@ -59,7 +59,7 @@
#define RGFW_EXPORT - Use when building RGFW
#define RGFW_IMPORT - Use when linking with RGFW (not as a single-header)
#define RGFW_STD_INT - force the use stdint.h (for systems that might not have stdint.h (msvc))
#define RGFW_USE_INT - force the use c-types rather than stdint.h (for systems that might not have stdint.h (msvc))
*/
/*
@ -168,15 +168,15 @@
#define RGFW_HEADER
#if !defined(u8)
#if ((defined(_MSC_VER) || defined(__SYMBIAN32__)) && !defined(RGFW_STD_INT)) /* MSVC might not have stdint.h */
#ifdef RGFW_USE_INT /* optional for any system that might not have stdint.h */
typedef unsigned char u8;
typedef signed char i8;
typedef unsigned short u16;
typedef signed short i16;
typedef unsigned int u32;
typedef signed int i32;
typedef unsigned long u64;
typedef signed long i64;
typedef unsigned long int u32;
typedef signed long int i32;
typedef unsigned long long u64;
typedef signed long long i64;
#else /* use stdint standard types instead of c ""standard"" types */
#include <stdint.h>
@ -2294,7 +2294,7 @@ This is where OS specific stuff starts
RGFW_jsButtonCallback(win, i, e.number, e.value);
return &win->event;
case JS_EVENT_AXIS:
case JS_EVENT_AXIS: {
size_t axis = e.number / 2;
if (axis == 2) axis = 1;
@ -2314,7 +2314,7 @@ This is where OS specific stuff starts
win->event.whichAxis = axis;
RGFW_jsAxisCallback(win, i, win->event.axis, win->event.axisesCount);
return &win->event;
}
default: break;
}
}

+ 1
- 1
src/platforms/rcore_desktop_rgfw.c View File

@ -1253,8 +1253,8 @@ int InitPlatform(void)
I think this is needed by Raylib now ?
If so, rcore_destkop_sdl should be updated too
*/
//SetupFramebuffer(CORE.Window.display.width, CORE.Window.display.height);
if (CORE.Window.flags & FLAG_VSYNC_HINT) RGFW_window_swapInterval(platform.window, 1);
RGFW_window_makeCurrent(platform.window);

Loading…
Cancel
Save