We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4033 - window sometime resizing incorrectly
Summary: window sometime resizing incorrectly
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.7
Hardware: x86 Windows 10
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-08 14:43 UTC by grougrou.hh
Modified: 2018-02-11 08:45 UTC (History)
1 user (show)

See Also:


Attachments
visual description of the bug (649.49 KB, image/png)
2018-01-08 14:43 UTC, grougrou.hh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description grougrou.hh 2018-01-08 14:43:33 UTC
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