Skip to content

Commit 4bec916

Browse files
Merge pull request #413 from Hedgehogsoft/main
replace implementation usage of stdint to use RGFW's stdint defs
2 parents d6ebdf1 + be0ca61 commit 4bec916

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

RGFW.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5447,7 +5447,7 @@ void RGFW_XCreateWindow (XVisualInfo visual, const char* name, RGFW_windowFlags
54475447
XSyncIntToValue(&initial_value, 0);
54485448
win->src.counter = XSyncCreateCounter(_RGFW->display, initial_value);
54495449

5450-
XChangeProperty(_RGFW->display, win->src.window, _NET_WM_SYNC_REQUEST_COUNTER, XA_CARDINAL, 32, PropModeReplace, (uint8_t*)&win->src.counter, 1);
5450+
XChangeProperty(_RGFW->display, win->src.window, _NET_WM_SYNC_REQUEST_COUNTER, XA_CARDINAL, 32, PropModeReplace, (u8*)&win->src.counter, 1);
54515451
#endif
54525452

54535453
win->src.x = win->x;
@@ -7804,8 +7804,8 @@ static void RGFW_wl_seat_capabilities(void* data, struct wl_seat *seat, u32 capa
78047804
}
78057805

78067806
static void RGFW_wl_output_set_geometry(void *data, struct wl_output *wl_output,
7807-
int32_t x, int32_t y, int32_t physical_width, int32_t physical_height,
7808-
int32_t subpixel, const char *make, const char *model, int32_t transform) {
7807+
i32 x, i32 y, i32 physical_width, i32 physical_height,
7808+
i32 subpixel, const char *make, const char *model, i32 transform) {
78097809

78107810
RGFW_monitor* monitor = &((RGFW_monitorNode*)data)->mon;
78117811
monitor->x = x;
@@ -7821,8 +7821,8 @@ static void RGFW_wl_output_set_geometry(void *data, struct wl_output *wl_output,
78217821
RGFW_UNUSED(transform);
78227822
}
78237823

7824-
static void RGFW_wl_output_set_mode(void *data, struct wl_output *wl_output, uint32_t flags,
7825-
int32_t width, int32_t height, int32_t refresh) {
7824+
static void RGFW_wl_output_set_mode(void *data, struct wl_output *wl_output, u32 flags,
7825+
i32 width, i32 height, i32 refresh) {
78267826

78277827
RGFW_monitor* monitor = &((RGFW_monitorNode*)data)->mon;
78287828

@@ -7835,7 +7835,7 @@ static void RGFW_wl_output_set_mode(void *data, struct wl_output *wl_output, uin
78357835
RGFW_UNUSED(flags);
78367836
}
78377837

7838-
static void RGFW_wl_output_set_scale(void *data, struct wl_output *wl_output, int32_t factor) {
7838+
static void RGFW_wl_output_set_scale(void *data, struct wl_output *wl_output, i32 factor) {
78397839
/* this is for pixelRatio */
78407840
RGFW_monitor* monitor = &((RGFW_monitorNode*)data)->mon;
78417841

@@ -7853,14 +7853,14 @@ static void RGFW_wl_output_set_name(void *data, struct wl_output *wl_output, con
78537853

78547854
}
78557855

7856-
static void RGFW_xdg_output_logical_pos(void *data, struct zxdg_output_v1 *zxdg_output_v1, int32_t x, int32_t y) {
7856+
static void RGFW_xdg_output_logical_pos(void *data, struct zxdg_output_v1 *zxdg_output_v1, i32 x, i32 y) {
78577857
RGFW_monitor* monitor = &((RGFW_monitorNode*)data)->mon;
78587858
monitor->x = x;
78597859
monitor->y = y;
78607860
RGFW_UNUSED(zxdg_output_v1);
78617861
}
78627862

7863-
static void RGFW_xdg_output_logical_size(void *data, struct zxdg_output_v1 *zxdg_output_v1, int32_t width, int32_t height) {
7863+
static void RGFW_xdg_output_logical_size(void *data, struct zxdg_output_v1 *zxdg_output_v1, i32 width, i32 height) {
78647864
RGFW_monitor* monitor = &((RGFW_monitorNode*)data)->mon;
78657865

78667866
float mon_float_width = (float) monitor->mode.w;
@@ -7875,7 +7875,7 @@ static void RGFW_xdg_output_logical_size(void *data, struct zxdg_output_v1 *zxdg
78757875
RGFW_UNUSED(zxdg_output_v1);
78767876
}
78777877

7878-
static void RGFW_wl_create_outputs(struct wl_registry *const registry, uint32_t id) {
7878+
static void RGFW_wl_create_outputs(struct wl_registry *const registry, u32 id) {
78797879
struct wl_output *output = wl_registry_bind(registry, id, &wl_output_interface, wl_display_get_version(_RGFW->wl_display) < 4 ? 3 : 4);
78807880
RGFW_monitorNode* node;
78817881
RGFW_monitor mon;
@@ -7940,7 +7940,7 @@ static void RGFW_wl_surface_enter(void *data, struct wl_surface *wl_surface, str
79407940
#endif
79417941
}
79427942

7943-
static void RGFW_wl_data_source_send(void *data, struct wl_data_source *wl_data_source, const char *mime_type, int32_t fd) {
7943+
static void RGFW_wl_data_source_send(void *data, struct wl_data_source *wl_data_source, const char *mime_type, i32 fd) {
79447944
RGFW_UNUSED(data); RGFW_UNUSED(wl_data_source);
79457945

79467946
// a client can accept our clipboard
@@ -7969,8 +7969,8 @@ static void RGFW_wl_data_device_data_offer(void *data, struct wl_data_device *wl
79697969
RGFW_UNUSED(data); RGFW_UNUSED(wl_data_device);
79707970
static const struct wl_data_offer_listener wl_data_offer_listener = {
79717971
.offer = (void (*)(void *data, struct wl_data_offer *wl_data_offer, const char *))RGFW_doNothing,
7972-
.source_actions = (void (*)(void *data, struct wl_data_offer *wl_data_offer, uint32_t dnd_action))RGFW_doNothing,
7973-
.action = (void (*)(void *data, struct wl_data_offer *wl_data_offer, uint32_t dnd_action))RGFW_doNothing
7972+
.source_actions = (void (*)(void *data, struct wl_data_offer *wl_data_offer, u32 dnd_action))RGFW_doNothing,
7973+
.action = (void (*)(void *data, struct wl_data_offer *wl_data_offer, u32 dnd_action))RGFW_doNothing
79747974
};
79757975
wl_data_offer_add_listener(wl_data_offer, &wl_data_offer_listener, NULL);
79767976
}

logo.png

2.91 KB
Loading

0 commit comments

Comments
 (0)