Fix text macros after foolishly breaking them
@@ -573,7 +573,7 @@ pub fn print_alloc(text: impl AsRef<str>, x: i32, y: i32, opts: PrintOptions) ->
#[macro_export]
macro_rules! print {
($text: literal, $($args: expr), *) => {
- $crate::tic80::print_raw($text, $($args), *);
+ $crate::tic80::print_raw(concat!($text, "\0"), $($args), *);
};
($text: expr, $($args: expr), *) => {
$crate::tic80::print_alloc($text, $($args), *);
@@ -642,7 +642,7 @@ pub fn font_alloc(text: impl AsRef<str>, x: i32, y: i32, opts: FontOptions) -> i
#[macro_export]
macro_rules! font {
($text: literal, $($args: expr), *) => {
- $crate::tic80::font_raw($text, $($args), *);
+ $crate::tic80::font_raw(concat!($text, "\0"), $($args), *);
};
($text: expr, $($args: expr), *) => {
$crate::tic80::font_alloc($text, $($args), *);
