fix canvas selector

no more "canvas" only "#canvas" works with recent emsdk
This commit is contained in:
Paul m. p. Peny 2022-10-21 19:05:09 +02:00 committed by GitHub
parent 870533037a
commit 570f65517b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ Window * NewFullscreenWindow(const char *title, const Monitor *monitor, int mode
void *GetDisplay() { return nullptr; }
static const char *canvas_name = "canvas";
static const char *canvas_name = "#canvas";
void *GetWindowHandle(const Window *w) {
return (void *)canvas_name;
// return reinterpret_cast<void *>(w->w);