Skip to content

Commit

Permalink
Makes Rust template PrintOptions and FontOptions structs fields p…
Browse files Browse the repository at this point in the history
…ublic (nesbox#2474)

* Make Rust tpl PrintOptions fields public

* Make Rust tpl FontOptions fields public
  • Loading branch information
turbohz authored Mar 6, 2024
1 parent eaaa636 commit d95a116
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions templates/rust/src/tic80.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,10 @@ pub fn fset(sprite_index: i32, flag: i8, value: bool) {
// The macros will avoid the allocation if passed a string literal by adding the null terminator at compile time.

pub struct PrintOptions {
color: i32,
fixed: bool,
scale: i32,
small_font: bool,
pub color: i32,
pub fixed: bool,
pub scale: i32,
pub small_font: bool,
}

impl Default for PrintOptions {
Expand Down Expand Up @@ -581,12 +581,12 @@ macro_rules! print {
}

pub struct FontOptions<'a> {
transparent: &'a [u8],
char_width: i8,
char_height: i8,
fixed: bool,
scale: i32,
alt_font: bool,
pub transparent: &'a [u8],
pub char_width: i8,
pub char_height: i8,
pub fixed: bool,
pub scale: i32,
pub alt_font: bool,
}

impl Default for FontOptions<'_> {
Expand Down

0 comments on commit d95a116

Please sign in to comment.