• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

Windows Draw Surface Stretched On Another Surface ???

M. Idrees

Member
Hi,
How to draw a surface with stretched size on another surface that is currently targeted ?

For example,

GML:
if surface_exists( surf1 ){
    surface_set_target(surf1);
        // draw something

        // draw the other surface
        if surface_exists(surf2)
            draw_surface_stretched( surf2, 0, 0, 128, 128 );
    }
    surface_reset_target();
}
But It doesn't work for me ?

It Draws Nothing ?
 

M. Idrees

Member
Oh Sorry I got it working.

Just set the order of the drawing and it works :)

1st Surface drawn above the 2nd surface that's why I didn't saw the drawing.

Thanks for your attention.
 
Top