Draw functions should return to the previous used surface (if there was one)
Closed this issue · 3 comments
jack27121 commented
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
jack27121 commented
this (might) help when using other extentions like bulb, but i won't know until i test them
jack27121 commented
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();
jack27121 commented
undo the surface_setting part...