With this function you reset all further drawing from the target
surface back to the screen. Please note that to start drawing to a
surface you must first have called the function surface_set_target and then
this one after you have finished, for each surface target that
you have set or else nothing will be drawn on the screen as all
further drawing (even in other instances) will be done on the
surface. You should also realise that nothing will be seen if the
surface itself is not drawn on the screen in the draw event of an
NOTE: if you have not previously set a render target with the function surface_set_target, using this function will silently (ie: without any error messages) end all further code execution for the event.
if view_current = 0
draw_surface(surf, 0, 0);
The above code will check to see which view is currently being drawn, and if it is view it sets the draw target to a surface and draws all instances of the object "obj_Effect" before resetting the draw target again. If the view is not view the surface is drawn to the screen.