SetMaskColor inside Import files?

BlitzMax Forums/BlitzMax Beginners Area/SetMaskColor inside Import files?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Are you calling SetMaskColor from a function inside those files?
I think SetMaskColor needs to be called after Graphics().

Edit: To expand what i just said

Bad:
' My file I import

SetMaskColor( 255,0,255 )

' Other stuff


Good:
' My file I import

function InitThisCode()
     ' Call this function after you called Graphics()
     SetMaskColor(255,0,255)
endfunction



... At least that's what I think is the problem. Correct me if I'm wrong.