~sebsite/generic-tetromino-game

Colors: add BLACK v1 SUPERSEDED

Lorenz (xha): 1
 Colors: add BLACK

 1 files changed, 3 insertions(+), 0 deletions(-)
Oooooh I'm really excited for this :D
Next
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sebsite/generic-tetromino-game/patches/41288/mbox | git am -3
Learn more about email & git

[PATCH] Colors: add BLACK Export this patch

---
Since there is white, BLACK should also exist?! The portal mod doesn't work
without it and I need it for a mod that I am currently developing :-)

 main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/main.c b/main.c
index 3637e2b..53aadad 100644
--- a/main.c
+++ b/main.c
@@ -70,6 +70,7 @@
#define INPUT_MASK_START (1 << 6)
#define INPUT_MASK_REPEAT (1 << 7)

#define BLACK 0x00000000
#define WHITE 0xffffffff
#define GREEN 0x287200ff
#define RED 0x982220ff
@@ -6855,6 +6856,8 @@ init_lua(void)
	lua_seti(L, -2, EV_TOPOUT);
	lua_setfield(L, -2, "__useroptions");
	lua_createtable(L, 0, 0); /* game.color */
	lua_pushinteger(L, (lua_Integer)BLACK);
	lua_setfield(L, -2, "BLACK");
	lua_pushinteger(L, (lua_Integer)WHITE);
	lua_setfield(L, -2, "WHITE");
	lua_pushinteger(L, (lua_Integer)GREEN);
-- 
2.40.1
Actually, thinking about it, it is probably not necessary since you can just
specify 0 as color. sry