1
Graphics / Re: Workaround for resizing window while dragging it
« on: September 08, 2023, 07:05:00 pm »If I remember correctly, an sf::RenderWindow isn't guaranteed to be fully thread-safe so just be aware of how both threads are using it simultaneously.Yes, that's part of my problem indeed, I have quite a hard time managing that.
Can I also ask why, in your example, you aren't using the window-specific code to paste the rectangle back onto the window? Note that SFML's display does some behind-the-scenes stuff. Possibly most notable is that it swaps the buffer (a window is double-buffered). Could this have something to so with why you aren't getting the result you expect from your code?If you are talking about the clear() function, that doesn't change anything in my problem, by default I remove it because it helps me in certain cases but even if I put it back the problem is still the same.
There's a very complicated Windows-only solution posted on the SFML wiki.This looks interesting thank you, however the code generates several errors because certain types are incompatible with each other in the code.