ref: d4d8e5bfc878b99f422daf1ec2a7d0974698e98d
parent: 6de17a7511bf67e999c450851d5bc9e4892367bb
author: Ben Harris <[email protected]>
date: Thu Jul 27 18:46:50 EDT 2023
Same Game: darken light colours to make keyboard cursor visible The keyboard cursor in Same Game is white. The default yellow, cyan, and light green were light enough to make the cursor hard to see. I've darkened them all (without changing their hues) so that the cursor is acceptably visible. This doesn't leave an ideal set of colours, but they are at least still adequately distinct from one another.
--- a/samegame.c
+++ b/samegame.c
@@ -1403,8 +1403,8 @@
ret[COL_3 * 3 + 1] = 0.0F;
ret[COL_3 * 3 + 2] = 0.0F;
- ret[COL_4 * 3 + 0] = 1.0F;
- ret[COL_4 * 3 + 1] = 1.0F;
+ ret[COL_4 * 3 + 0] = 0.7F;
+ ret[COL_4 * 3 + 1] = 0.7F;
ret[COL_4 * 3 + 2] = 0.0F;
ret[COL_5 * 3 + 0] = 1.0F;
@@ -1412,16 +1412,16 @@
ret[COL_5 * 3 + 2] = 1.0F;
ret[COL_6 * 3 + 0] = 0.0F;
- ret[COL_6 * 3 + 1] = 1.0F;
- ret[COL_6 * 3 + 2] = 1.0F;
+ ret[COL_6 * 3 + 1] = 0.8F;
+ ret[COL_6 * 3 + 2] = 0.8F;
ret[COL_7 * 3 + 0] = 0.5F;
ret[COL_7 * 3 + 1] = 0.5F;
ret[COL_7 * 3 + 2] = 1.0F;
- ret[COL_8 * 3 + 0] = 0.5F;
- ret[COL_8 * 3 + 1] = 1.0F;
- ret[COL_8 * 3 + 2] = 0.5F;
+ ret[COL_8 * 3 + 0] = 0.2F;
+ ret[COL_8 * 3 + 1] = 0.8F;
+ ret[COL_8 * 3 + 2] = 0.2F;
ret[COL_9 * 3 + 0] = 1.0F;
ret[COL_9 * 3 + 1] = 0.5F;