| Summary: | window sometime resizing incorrectly | ||
|---|---|---|---|
| Product: | SDL | Reporter: | grougrou.hh |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | NEW --- | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | sezeroz |
| Version: | 2.0.7 | ||
| Hardware: | x86 | ||
| OS: | Windows 10 | ||
| Attachments: | visual description of the bug | ||
Created attachment 3127 [details] visual description of the bug Hello, see the attached image for better comprehension I use borderless window i have the 2.0.7 runtime binairies for windows (using windows 10) some time when resizing a window (making it bigger), the displayable part of the window does not resize. but the window effectively resized (the window is clickable on the new size , the renderer has the new size etc... but the displayed part is cutted and the remaining space is transparent (when clicking in the transparent space the event are register)) . this bug happens maybe every 1 on 10 resize . to resize the window i use : void DisplayWindow::set_x(int val) { x = val; SDL_SetWindowPosition(SDL_id, x, y); check_max(); } void DisplayWindow::set_y(int val) { y = val; SDL_SetWindowPosition(SDL_id, x, y); check_max(); } void DisplayWindow::set_w(int val) { width = val; SDL_SetWindowSize(SDL_id, width, height); } void DisplayWindow::set_h(int val) { height = val; SDL_SetWindowSize(SDL_id, width, height); } these function the intended result and result when buged can be seen in the attached file. I think the bug comes from SDL since in SDL it is not possible to have a part of the window transparent. if you need other information please ask Thank you