SFML community forums

Help => Graphics => Topic started by: barnack on August 19, 2018, 02:37:04 am

Title: prevent last draw trail during resizing
Post by: barnack on August 19, 2018, 02:37:04 am
Hi,
is there a way to prevent a window from creating a trail of what's in the borders during window resizing?
Just having it flat black would be better than this.
Note this is during resizing, not after left button is released. Windows blocks the window until resizing is complete afaik, but other programs i made with gamemaker dont have this behaviour during resizing.
Title: Re: prevent last draw trail during resizing
Post by: Hapax on August 19, 2018, 04:46:55 pm
SFML doesn't allow you to update (or redraw) the window during a resize; you need a more comprehensive window library to create and control the window (or create and control it yourself) and you can then insert SFML into that window.
Title: Re: prevent last draw trail during resizing
Post by: barnack on August 19, 2018, 06:48:46 pm
SFML doesn't allow you to update (or redraw) the window during a resize; you need a more comprehensive window library to create and control the window (or create and control it yourself) and you can then insert SFML into that window.
Got it, thanks.