fix init next tetrinos display
authorLaurent Mazet <mazet@softndesign.org>
Tue, 30 Jul 2024 06:00:52 +0000 (08:00 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 30 Jul 2024 06:00:52 +0000 (08:00 +0200)
tetris.c

index 839293adcaaefda467a47cb3aac69c4338de6931..82887ab0113ac806a58e82b6a79ead3167af47dd 100644 (file)
--- a/tetris.c
+++ b/tetris.c
@@ -278,6 +278,8 @@ int main (int argc, char *argv[])
             break;
         case 1:
             halfdelay (1);
+            boardwindow (nextblock, 1);
+            displayblock (nextblock, blocks + next, -1, -1);
             if (blockend.tv_sec && isovertime (&blockend)) {
                 if (testvalidpos (board, cblock, xblock, yblock + 1)) {
                     yblock++;