Skip to content

Commit

Permalink
flip draw order so time shows over memory
Browse files Browse the repository at this point in the history
  • Loading branch information
iamevn committed Apr 6, 2021
1 parent 3d10d6d commit d20372d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions draw.lua
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,17 @@ function love.draw()
end

if #frames > 1 then
if draw.graphView == "time" or draw.graphView == "both" then
lg.setLineWidth(1)
lg.setColor(const.timeGraphColor)
lg.line(graphs.time)
end

if draw.graphView == "memory" or draw.graphView == "both" then
lg.setLineWidth(2)
lg.setColor(const.memGraphColor)
lg.line(graphs.mem)
end

if draw.graphView == "time" or draw.graphView == "both" then
lg.setLineWidth(1)
lg.setColor(const.timeGraphColor)
lg.line(graphs.time)
end
end

lg.setColor(const.textColor)
Expand Down

0 comments on commit d20372d

Please sign in to comment.