mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 02:16:58 +00:00
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.
This commit is contained in:
@@ -400,13 +400,6 @@ static void game_paint(ui_window_t win) {
|
|||||||
draw_status(win);
|
draw_status(win);
|
||||||
|
|
||||||
draw_board(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) {
|
static bool point_in_rect(int px, int py, int x, int y, int w, int h) {
|
||||||
|
|||||||
Reference in New Issue
Block a user