SDL question

closed account (N8RzwA7f)
Hello all.
(solved myself in the end :) )
I have some basic program that should first display an image
until a user clicks (drawWindowLoad) then it should load both a different background color each time(drawWindowBack) and a static image (drawWindowFront)

the drawWindowload works fine (it use createtexturefromsurface)
then in the while(running) loop
where every click event is watched I have added the drawWindowback and
drawwindowFront functions.

drawWindowBack use blitsurface and SDL_CreateRGBSurface
while drawWindowFront uses createtexturefromsurface .

if in the loop the functions are called in this order:
drawWindowfront()
drawWindowBack() only the backgroudn changes color

if in the loop the functions are called in this order:
drawWindowBack()
drawWindowFront() only the image is shown

so what is going on ? thanks!!
Last edited on
Topic archived. No new replies allowed.