mirror of
https://github.com/fairyglade/ly.git
synced 2026-03-25 01:36:05 +00:00
[Backport] Fix buffer not resizing with no animation
Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
@@ -633,7 +633,7 @@ pub fn main() !void {
|
|||||||
|
|
||||||
while (run) {
|
while (run) {
|
||||||
// If there's no input or there's an animation, a resolution change needs to be checked
|
// If there's no input or there's an animation, a resolution change needs to be checked
|
||||||
if (!update or animate) {
|
if (!update or animate or config.bigclock != .none or config.clock != null) {
|
||||||
if (!update) std.Thread.sleep(std.time.ns_per_ms * 100);
|
if (!update) std.Thread.sleep(std.time.ns_per_ms * 100);
|
||||||
|
|
||||||
_ = termbox.tb_present(); // Required to update tb_width() and tb_height()
|
_ = termbox.tb_present(); // Required to update tb_width() and tb_height()
|
||||||
|
|||||||
Reference in New Issue
Block a user