Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

Tetris: the icon's size comes from its file

Mason Chen19fd9731961b
diff --git a/games/tetris/tetris/src/main.rs b/games/tetris/tetris/src/main.rs
index 6497941b..0e3bc4ee 100644
--- a/games/tetris/tetris/src/main.rs
+++ b/games/tetris/tetris/src/main.rs
@@ -17,7 +17,7 @@ pub static EADK_APP_API_LEVEL: u32 = 0;
#[used]
#[link_section = ".rodata.eadk_app_icon"]
-pub static EADK_APP_ICON: [u8; 3030] = *include_bytes!("../target/icon.nwi");
+pub static EADK_APP_ICON: [u8; include_bytes!("../target/icon.nwi").len()] = *include_bytes!("../target/icon.nwi");
extern "C" fn play() {
game_tetris::start();