Skip to content

Commit

Permalink
Fix transparent default value in Args structs
Browse files Browse the repository at this point in the history
  • Loading branch information
soxfox42 committed Jul 2, 2022
1 parent 3d1f1a7 commit 65fad1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/zig/src/tic80.zig
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ const MapArgs = struct {
h: i32 = 17,
sx: i32 = 0,
sy: i32 = 0,
transparent: []const u8 = .{},
transparent: []const u8 = &.{},
scale: u8 = 1,
remap: i32 = -1, // TODO
};
Expand Down Expand Up @@ -249,7 +249,7 @@ pub const Rotate = enum(u2) {
const SpriteArgs = struct {
w: i32 = 1,
h: i32 = 1,
transparent: []const u8 = .{},
transparent: []const u8 = &.{},
scale: u8 = 1,
flip: Flip = Flip.no,
rotate: Rotate = Rotate.no,
Expand All @@ -269,7 +269,7 @@ pub const trib = raw.trib;

const TextriArgs = struct {
texture_source : TextureSource = TextureSource.TILES,
transparent: []const u8 = .{},
transparent: []const u8 = &.{},
z1 : f32 = 0,
z2 : f32 = 0,
z3 : f32 = 0,
Expand All @@ -293,7 +293,7 @@ const PrintArgs = struct {
};

const FontArgs = struct {
transparent: []const u8 = .{},
transparent: []const u8 = &.{},
char_width: u8,
char_height: u8,
fixed: bool = false,
Expand Down

0 comments on commit 65fad1a

Please sign in to comment.