clear surface makes my bg go violet!

Started by , Thu 14/02/2008 20:57:04

Previous topic - Next topic

bicilotti

Code: ags
DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
      surface.Clear(); 
      surface.Release();


When I run that my background is istantly washed in pink colour. I just to want to remove whatever rawdraw* action i did until now, not covering the bg. Any hint?

Pumaman

RawDrawing is permanent until the player leaves the screen. If you want to be able to undo it, you need to use the DrawingSurface.CreateCopy method to create a backup copy before you start, and then use DrawSurface later to restore it.

bicilotti

#2
Quote from: Pumaman on Thu 14/02/2008 21:11:32
RawDrawing is permanent until the player leaves the screen. If you want to be able to undo it, you need to use the DrawingSurface.CreateCopy method to create a backup copy before you start, and then use DrawSurface later to restore it.


Enlightening. I respectfully bow to you, mighty creator. Thank you!

SMF spam blocked by CleanTalk