Skip to content

Commit

Permalink
fix undefined bool (webasm)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Nov 21, 2024
1 parent 000334a commit 2eaa8f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RGFW.h
Original file line number Diff line number Diff line change
Expand Up @@ -8318,10 +8318,10 @@ EM_BOOL Emscripten_on_resize(int eventType, const EmscriptenUiEvent* e, void* us
}

EM_BOOL Emscripten_on_fullscreenchange(int eventType, const EmscriptenFullscreenChangeEvent* e, void* userData) {
static bool fullscreen = false;
static u8 fullscreen = RGFW_FALSE;
static RGFW_rect ogRect;

if (fullscreen == false) {
if (fullscreen == RGFW_FALSE) {
ogRect = RGFW_root->r;
}

Expand All @@ -8334,7 +8334,7 @@ EM_BOOL Emscripten_on_fullscreenchange(int eventType, const EmscriptenFullscreen

RGFW_root->r = RGFW_RECT(0, 0, e->elementWidth, e->elementHeight);

if (fullscreen == false) {
if (fullscreen == RGFW_FALSE) {
emscripten_set_canvas_element_size("#canvas", ogRect.w, ogRect.h);
RGFW_root->r = RGFW_RECT(0, 0, ogRect.w, ogRect.h);
}
Expand Down

0 comments on commit 2eaa8f1

Please sign in to comment.