Return the bounding box

This commit is contained in:
Gwilym Kuiper 2022-04-05 23:03:56 +01:00
parent 1f65f94ee3
commit 22f89ed9e2

View file

@ -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)
}
}