Refactor dashboard drawing functions to use setDrawTarget for improved clarity
This commit is contained in:
@@ -706,7 +706,7 @@ local function drawDashboard()
|
|||||||
pendingZones = {}
|
pendingZones = {}
|
||||||
|
|
||||||
-- Offscreen buffer
|
-- Offscreen buffer
|
||||||
draw = window.create(mon, 1, 1, w, h, false)
|
setDrawTarget(window.create(mon, 1, 1, w, h, false))
|
||||||
draw.setBackgroundColor(colors.black)
|
draw.setBackgroundColor(colors.black)
|
||||||
draw.clear()
|
draw.clear()
|
||||||
|
|
||||||
@@ -1273,7 +1273,7 @@ local function drawSmelterDashboard()
|
|||||||
smelterPendingZones = {}
|
smelterPendingZones = {}
|
||||||
|
|
||||||
-- Offscreen buffer
|
-- Offscreen buffer
|
||||||
draw = window.create(smelterMon, 1, 1, w, h, false)
|
setDrawTarget(window.create(smelterMon, 1, 1, w, h, false))
|
||||||
draw.setBackgroundColor(colors.black)
|
draw.setBackgroundColor(colors.black)
|
||||||
draw.clear()
|
draw.clear()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user