From 746819470de51c4f7331b64980f3da9bfb750a12 Mon Sep 17 00:00:00 2001 From: fschildt Date: Tue, 25 Nov 2025 02:14:20 +0100 Subject: tetris: fix z-values --- src/games/tetris/Board.cpp | 2 +- src/games/tetris/Tetromino.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/games/tetris') diff --git a/src/games/tetris/Board.cpp b/src/games/tetris/Board.cpp index 6188eb8..a1ab72a 100644 --- a/src/games/tetris/Board.cpp +++ b/src/games/tetris/Board.cpp @@ -145,7 +145,7 @@ Board::Draw(int32_t level) Color color = Tetromino::GetColor(tetromino_id); - g_renderer.PushRectangle(world_rect, color, Game::z_layer1); + g_renderer.PushRectangle(world_rect, color, Game::z_layer2); } } } diff --git a/src/games/tetris/Tetromino.cpp b/src/games/tetris/Tetromino.cpp index a3ec9dd..ad75161 100644 --- a/src/games/tetris/Tetromino.cpp +++ b/src/games/tetris/Tetromino.cpp @@ -233,7 +233,7 @@ Tetromino::Draw(Id id, int32_t ori, V2F32 pos, float scale) Color color = GetColor(id); - g_renderer.PushRectangle(world_rect, color, Game::z_layer1); + g_renderer.PushRectangle(world_rect, color, Game::z_layer2); } } } -- cgit v1.2.3