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.

Moto X3M: bands of 48 rows on calculators without an FPU

Mason3631e3bbe42f027
diff --git a/games/motox3m/src/gfx.h b/games/motox3m/src/gfx.h
index 0a13117a..22877f5b 100644
--- a/games/motox3m/src/gfx.h
+++ b/games/motox3m/src/gfx.h
@@ -7,7 +7,11 @@
#include "plat.h"
#include "res.h"
+#if NP_SOFT_FLOAT
+#define BAND 48 /* (the scene's float work is done once a band: fewer of them where float is slow) */
+#else
#define BAND 12
+#endif
static inline uint16_t rgb565(uint32_t rgb) {
return (uint16_t)(((rgb >> 8) & 0xF800) | ((rgb >> 5) & 0x07E0) | ((rgb >> 3) & 0x001F));