[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] Bug: SCUserView does not reset Pen affine transform matrix



hi,

the affine transform for SCUserView / Pen is not reset, so sequential views appear with transform leftovers of the previously painted view:

w = SCWindow.new.front
x = SCVLayoutView( w, w.view.bounds.insetBy( 4, 4 ));
10.do({ SCUserView( x, Rect( 0, 0, 20, 16 )).canFocus_ ( false ).relativeOrigin_( false ).drawFunc_({ arg view; Pen.fillRect ( view.bounds ); Pen.translate( 2, 2 )})});