GM: surface reset target

From GMpedia.org Wiki

Jump to: navigation, search
The correct title of this article is surface_reset_target(). It appears incorrectly here because of technical restrictions.
The correct title of this article is surface_reset_target(). It appears incorrectly here because of technical restrictions.


Arguments

none

Limitations

none.

Note: Please remove limitations and port them in the "Remarks" section at the end of the article.

This function resets the drawing target to the main screen. This function must be called after finishing from the surface_set_target(id) function because it will mess up the screen otherwise by ordering Game Maker to draw the window object and controls on the surface.

[edit] Example

surface_set_target(surface);
//draw_...
//draw_...
surface_reset_target();

[edit] See Also

This article was originally found at the Game Maker Knowledge Base, contributed by Eyas Sharaiha.
See the talk page for details
Personal tools