git.haldean.org wallbot / 02e91ca
make controller full-screen Haldean Brown 4 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
1414 const top = 160
1515 const toothR = 30
1616 const wheelR = 100
17 const w = 1800
18 const h = 900
17 var w = 1800
18 var h = 900
1919
2020 let c0 = color(6, 12, 25)
2121 let c1 = color(230, 255, 255)
228228
229229 proc displayRun*(startPos: WallPosition) {.thread.} =
230230 var csettings = csfml.contextSettings(antialiasing = 1)
231 let mode = videoMode_getFullscreenModes()[0]
231232 let window = csfml.newRenderWindow(
232 videoMode(w, h), "Wallplot Display", WindowStyle.None, csettings)
233 mode, "Wallplot Display", WindowStyle.None, csettings)
234 w = mode.width
235 h = mode.height
233236
234237 let font = newFont("resources/InputMono-Regular.ttf")
235238 var header = newText("WALLBOT CONTROLLER", font, 48)