mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-22 21:44:20 +02:00
Formatting
This commit is contained in:
parent
84486c4e18
commit
93070ef166
1 changed files with 2 additions and 4 deletions
|
|
@ -1981,11 +1981,9 @@ fn positionWidgets(ptr: *anyopaque) !void {
|
|||
bb_width = @min(bb_width, state.buffer.width - 2);
|
||||
|
||||
const v_space: f32 = @floatFromInt(state.buffer.height - bb_height);
|
||||
const v_position: usize = @intFromFloat(
|
||||
@min(@max(1.0, v_space * state.config.box_v_position), max_v_position));
|
||||
const v_position: usize = @intFromFloat(@min(@max(1.0, v_space * state.config.box_v_position), max_v_position));
|
||||
const h_space: f32 = @floatFromInt(state.buffer.width - bb_width);
|
||||
const h_position: usize = @intFromFloat(
|
||||
@min(@max(1.0, h_space * state.config.box_h_position), max_h_position));
|
||||
const h_position: usize = @intFromFloat(@min(@max(1.0, h_space * state.config.box_h_position), max_h_position));
|
||||
|
||||
if (state.config.bigclock != .none) {
|
||||
state.bigclock_label.positionXY(TerminalBuffer.START_POSITION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue