Apply Rect to Buffer.borderedRectangle

Also set it to have all fields with a default of 0 since we use that
quite a bit and it saves writing it.
This commit is contained in:
Ben Buhse 2026-02-16 17:32:46 -06:00
commit a37f72f0d7
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
5 changed files with 21 additions and 42 deletions

View file

@ -13,10 +13,10 @@ pub const RiverColor = struct {
};
pub const Rect = struct {
width: u31,
height: u31,
x: i32,
y: i32,
width: u31 = 0,
height: u31 = 0,
x: i32 = 0,
y: i32 = 0,
};
/// Parse a color in the format 0xRRGGBB or 0xRRGGBBAA and convert it to