Skip to content

Commit

Permalink
Fix sdl_togglefullscreen for new event target behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Nov 8, 2021
1 parent dbdf00e commit b0d2127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sdl_togglefullscreen.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ int main() {
/* SDL 1 limits which events can be used here.
* Click and mouseup don't work.
*/
if (emscripten_set_mouseup_callback(NULL, NULL, 1, mouseup) != EMSCRIPTEN_RESULT_SUCCESS) {
if (emscripten_set_mouseup_callback("#canvas", NULL, 1, mouseup) != EMSCRIPTEN_RESULT_SUCCESS) {
printf("Couldn't to set mouse callback. Test failed.\n");
}

Expand Down

0 comments on commit b0d2127

Please sign in to comment.