diff options
| author | dam <dam@gudinoff> | 2023-09-20 18:08:27 +0100 |
|---|---|---|
| committer | dam <dam@gudinoff> | 2023-09-20 18:08:27 +0100 |
| commit | 12181226862c73ab04992850b54c91e503f59bce (patch) | |
| tree | b7e2a18906d8d0aaecb684326fbbca16d46fa016 | |
| parent | 65adffcf572c98c0198affcdf729d989fec253ae (diff) | |
| download | task-time-tracker-12181226862c73ab04992850b54c91e503f59bce.tar.zst task-time-tracker-12181226862c73ab04992850b54c91e503f59bce.zip | |
Removed unused parameter from draw_bow procedure.
| -rw-r--r-- | TUI/module.jai | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/TUI/module.jai b/TUI/module.jai index 67a9edd..6d65342 100644 --- a/TUI/module.jai +++ b/TUI/module.jai @@ -94,7 +94,7 @@ stop :: () { OS_reset_terminal(); } -draw_box :: (x: int, y: int, width: int, height: int, to_standard_error := false) { +draw_box :: (x: int, y: int, width: int, height: int) { // TODO Hardcoded box starting at 1,1... fix this! @@ -104,13 +104,13 @@ draw_box :: (x: int, y: int, width: int, height: int, to_standard_error := false Commands.EnterDrawingMode, "\e[1;1H", // Move to position 1,1 // TODO // Move pointer to top-left corner. - Drawings.CornerTL, - to_standard_error = to_standard_error); + Drawings.CornerTL + ); for 1..width-2 { - write_string(Drawings.LineH, to_standard_error = to_standard_error); + write_string(Drawings.LineH); } - write_string(Drawings.CornerTR, to_standard_error = to_standard_error); + write_string(Drawings.CornerTR); // TODO Take care of the temporary allocations. @@ -121,24 +121,19 @@ draw_box :: (x: int, y: int, width: int, height: int, to_standard_error := false tmpL, Drawings.LineV, tmpR, - Drawings.LineV, - to_standard_error = to_standard_error); + Drawings.LineV); } tmpBL := tprint("\e[%;%H", height, 1); write_strings( tmpBL, - Drawings.CornerBL, - to_standard_error = to_standard_error); + Drawings.CornerBL); for 1..width-2 { - write_string(Drawings.LineH, to_standard_error = to_standard_error); + write_string(Drawings.LineH); } - write_string(Drawings.CornerBR, to_standard_error = to_standard_error); + write_string(Drawings.CornerBR); - write_strings( - // TODO // print - Commands.EnterNormalMode, - to_standard_error = to_standard_error); + write_strings(Commands.EnterNormalMode); } clear_screen :: inline () { |
