3 Commits

Author SHA1 Message Date
Ray
2e652bbef1 Merge pull request #5115 from maiconpintoabreu/web_resizable_window_mouse_issue
[rcore][web] Work around to fix mouse positioning on scaled window
2025-08-15 12:51:15 +02:00
Ray
5236b2420a Update rexm.c 2025-08-15 12:43:45 +02:00
73950befca Work around to fix mouse positioning on scaled window 2025-08-15 10:57:44 +01:00
2 changed files with 4 additions and 0 deletions

View File

@ -1822,6 +1822,8 @@ static EM_BOOL EmscriptenResizeCallback(int eventType, const EmscriptenUiEvent *
CORE.Window.screen.width = width;
CORE.Window.screen.height = height;
glfwSetWindowSize(platform.handle, CORE.Window.screen.width, CORE.Window.screen.height);
// NOTE: Postprocessing texture is not scaled to new size
return 0;

View File

@ -1021,6 +1021,8 @@ int main(int argc, char *argv[])
| text_format_text | ✘ | ✘ | ✘ | ✘ | ✘ | ✘ | ✘ | ✘ | ✔ | ✘ | ✔ | ✔ | ✔ |
*/
// TODO: Generate a report with only the examples missing some elements
char *report = (char *)RL_CALLOC(REXM_MAX_BUFFER_SIZE, 1);
int repIndex = 0;