Skip to content

Commit

Permalink
update RGFW
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Jan 6, 2025
1 parent 5cc4822 commit 2fd0a4d
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions examples/minimal_links/minimal_links.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,11 @@
#define RGFW_NO_API
#define RGFW_WGL_LOAD
#define RGFW_NO_IOKIT

#ifdef __linux__
#define XDL_IMPLEMENTATION
#include "XDL.h"
#endif
#define RGFW_USE_XDL

#include "RGFW.h"

int main(void) {
#ifdef __linux__
XDL_init();
#endif

RGFW_window* win = RGFW_createWindow("a window", RGFW_RECT(0, 0, 800, 600), (u16)(RGFW_center | RGFW_noResize));

while (RGFW_window_shouldClose(win) == RGFW_FALSE) {
Expand All @@ -24,8 +16,4 @@ int main(void) {
}

RGFW_window_close(win);

#ifdef __linux__
XDL_close();
#endif
}

0 comments on commit 2fd0a4d

Please sign in to comment.