diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-05 16:36:33 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-05 16:36:33 +0200 |
| commit | 259e554921e12cc69ec392927bd56a6cd80895f9 (patch) | |
| tree | f98d08e6334b202b128a4596204cb97075c030c2 /src/output.zig | |
| parent | bcb143fe13586e42fc27e191f262925ca7a879c4 (diff) | |
| download | river-259e554921e12cc69ec392927bd56a6cd80895f9.tar.gz river-259e554921e12cc69ec392927bd56a6cd80895f9.tar.xz | |
Fix overdraw of top/bottom borders
Diffstat (limited to 'src/output.zig')
| -rw-r--r-- | src/output.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output.zig b/src/output.zig index 6de956d..17557b1 100644 --- a/src/output.zig +++ b/src/output.zig @@ -260,7 +260,7 @@ pub const Output = struct { border.x = @floatToInt(c_int, ox) + view.current_box.x + @intCast(c_int, border_width); border.y = @floatToInt(c_int, oy) + view.current_box.y; - border.width = @intCast(c_int, view.current_box.width); + border.width = @intCast(c_int, view.current_box.width - border_width * 2); border.height = @intCast(c_int, border_width); scaleBox(&border, self.wlr_output.scale); c.wlr_render_rect( @@ -275,7 +275,7 @@ pub const Output = struct { @intCast(c_int, border_width); border.y = @floatToInt(c_int, oy) + view.current_box.y + @intCast(c_int, view.current_box.height - border_width); - border.width = @intCast(c_int, view.current_box.width); + border.width = @intCast(c_int, view.current_box.width - border_width * 2); border.height = @intCast(c_int, border_width); scaleBox(&border, self.wlr_output.scale); c.wlr_render_rect( |
