From 93bf2e173403454756403323a64239487e2ea9c1 Mon Sep 17 00:00:00 2001 From: boreddevnl Date: Fri, 17 Apr 2026 09:52:37 +0200 Subject: [PATCH] RM: commented-out button draw calls Clean up src/userland/games/2048.c by removing a block of commented-out draw_button calls in game_paint(). This eliminates unrecommended UI code and tidies the rendering function; no functional behavior changes. --- src/userland/games/2048.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/userland/games/2048.c b/src/userland/games/2048.c index 2b032a5..1b01ea1 100644 --- a/src/userland/games/2048.c +++ b/src/userland/games/2048.c @@ -400,13 +400,6 @@ static void game_paint(ui_window_t win) { draw_status(win); draw_board(win); - /* Not recommended to use - draw_button(win, 18, 352, 86, 30, "Restart", COLOR_ACCENT); - draw_button(win, 123, 352, BTN_W, BTN_H, "Left", COLOR_BORDER); - draw_button(win, 186, 352, BTN_W, BTN_H, "Right", COLOR_BORDER); - draw_button(win, 92, 390, BTN_W, BTN_H, "Up", COLOR_BORDER); - draw_button(win, 155, 390, BTN_W, BTN_H, "Down", COLOR_BORDER); - */ } static bool point_in_rect(int px, int py, int x, int y, int w, int h) {