mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Should be static
This commit is contained in:
parent
f4efaf67a4
commit
fa1de1fab7
|
@ -11,7 +11,7 @@ use agb::{
|
|||
|
||||
use core::fmt::Write;
|
||||
|
||||
const FONT: Font = include_font!("examples/font/ark-pixel-10px-proportional-ja.ttf", 10);
|
||||
static FONT: Font = include_font!("examples/font/ark-pixel-10px-proportional-ja.ttf", 10);
|
||||
|
||||
#[agb::entry]
|
||||
fn main(mut gba: agb::Gba) -> ! {
|
||||
|
|
|
@ -279,7 +279,7 @@ impl<'a, 'b> TextRenderer<'b> {
|
|||
mod tests {
|
||||
use super::*;
|
||||
use crate::display::tiled::{TileFormat, TiledMap};
|
||||
const FONT: Font = crate::include_font!("examples/font/yoster.ttf", 12);
|
||||
static FONT: Font = crate::include_font!("examples/font/yoster.ttf", 12);
|
||||
|
||||
#[test_case]
|
||||
fn font_display(gba: &mut crate::Gba) {
|
||||
|
|
Loading…
Reference in a new issue