PDA

View Full Version : Flashes white



Thyandyr
16-12-2020, 03:32 PM
I can make full screen application with SDL2 that appears black from the get go, but any window created with SDL seems to have to be white to begin with. I try to create it hidden and to set render color to black and clear the screen before showing the window but seems I cannot do any render operations on a hidden window. Therefore if I immediately paint the screen black it still flashes white first.

Is there a way to make it appear any other color than white when first appearing on screen?

Thyandyr
16-12-2020, 04:01 PM
I solved it by making the window not hidden but size 0,0 and then paint it, and then resizing it. Seems to work.