Skip to content

Commit

Permalink
support Window::raw_handle for emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Oct 4, 2024
1 parent fdef7d9 commit 885a0d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cfl_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ void *resolve_raw_handle(void *handle) {
#if defined(FLTK_USE_WAYLAND)
if (fl_wl_display())
ret = fl_wl_surface((struct wld_window *)((Window)handle));
#elif defined(__EMSCRIPTEN__)
ret = fl_em_find((Window)ret);
#endif
return ret;
}
Expand Down

0 comments on commit 885a0d0

Please sign in to comment.