Skip to content

Commit

Permalink
修改drawCursor全局方法的参数顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Dec 17, 2024
1 parent be7090f commit 65dbaa5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ local globalEvent={

-- Cursor drawing function
-- **Graphic states (like color) are uncertain**
---@type fun(time:number,x:number,y:number)
drawCursor=function(_,x,y)
---@type fun(x:number, y:number, time:number)
drawCursor=function(x,y)
gc_setColor(1,1,1)
gc.setLineWidth(2)
gc_circle(MSisDown(1) and 'fill' or 'line',x,y,6)
Expand Down Expand Up @@ -1324,7 +1324,7 @@ function love.run()
gc_replaceTransform(xOy)
SYSFX._draw()
TEXT.draw(TEXT)
if mouseShow then globalEvent.drawCursor(time,mx,my) end
if mouseShow then globalEvent.drawCursor(mx,my,time) end
gc_replaceTransform(SCR.xOy_ul)
globalEvent.drawSysInfo()
gc_replaceTransform(xOy)
Expand Down

0 comments on commit 65dbaa5

Please sign in to comment.