jack27121/STANNcam

Draw functions should return to the previous used surface (if there was one)

Closed this issue · 3 comments

Some drawing functions internally use a surface. and then reset back.

But if you outside the draw function used your own surface, that fucks it up. So they should reset back to whatever surface was used before the drawing functions one

this (might) help when using other extentions like bulb, but i won't know until i test them

Actually it seems this happens by default.
Surface_set_target and surface_reset_target are like brackets in code

surface_set_target(surf1);
  surface_set_target(surf2);
    draw_sprite()
  surface_reset_target();
surface_reset_target();

undo the surface_setting part...