File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1377,7 +1377,7 @@ WIDGET.indexMeta={
13771377function WIDGET .setWidgetList (list )
13781378 WIDGET .unFocus (true )
13791379 WIDGET .active = list or NONE
1380- WIDGET .cursorMove (SCR . xOy :inverseTransformPoint (love .mouse .getPosition ()))
1380+ WIDGET .cursorMove (xOy :inverseTransformPoint (love .mouse .getPosition ()))
13811381
13821382 -- Reset all widgets
13831383 if list then
@@ -1519,6 +1519,7 @@ function WIDGET.resize(w,h)
15191519 widgetCanvas = gc .newCanvas (w ,h )
15201520end
15211521function WIDGET .draw ()
1522+ gc_replaceTransform (xOy )
15221523 gc_setCanvas ({stencil = true },widgetCanvas )
15231524 gc_translate (0 ,- WIDGET .scrollPos )
15241525 for _ ,W in next ,WIDGET .active do
@@ -1540,7 +1541,6 @@ function WIDGET.draw()
15401541 gc_setBlendMode (' alpha' ,' premultiplied' )
15411542 gc_draw (widgetCanvas )
15421543 gc_setBlendMode (' alpha' )
1543- gc_replaceTransform (SCR .xOy )
15441544end
15451545
15461546return WIDGET
You can’t perform that action at this time.
0 commit comments