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:
parent
515e94320b
commit
a37f72f0d7
5 changed files with 21 additions and 42 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue