mirror of
https://github.com/italicsjenga/agb.git
synced 2025-02-23 22:58:18 +11:00
Return the bounding box
This commit is contained in:
parent
1f65f94ee3
commit
22f89ed9e2
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ impl Font {
|
|||
background_colour: u8,
|
||||
bg: &mut RegularMap,
|
||||
vram_manager: &mut VRamManager,
|
||||
) -> i32 {
|
||||
) -> (i32, i32) {
|
||||
let mut tiles: Vec<Vec<DynamicTile>> = vec![];
|
||||
|
||||
let mut render_pixel = |x: u16, y: u16| {
|
||||
|
@ -130,6 +130,6 @@ impl Font {
|
|||
}
|
||||
}
|
||||
|
||||
current_x_pos
|
||||
(current_x_pos, current_y_pos + self.line_height)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue