feat: add SYS_FUTEX_WAIT and SYS_FUTEX_WAKE syscalls; revamp desktop application categories
This commit is contained in:
1 parent
60ca9c78c7
commit
abfd9de8f6
35 files changed
+545
-70
No files matched your search
@@ -271,13 +271,13 @@ void desktop_draw_app_menu(DesktopState* ds) {
|
||||
int mx = ds->mouse.x;
|
||||
int my = ds->mouse.y;
|
||||
int iy = menu_y + 5;
|
||||
int cur_cat = -1;
|
||||
bool cat_expanded = true;
|
||||
|
||||
for (int i = 0; i < menu_row_count; i++) {
|
||||
const MenuRow& row = menu_rows[i];
|
||||
|
||||
if (row.is_category) cur_cat++;
|
||||
if (!menu_row_visible(i)) continue;
|
||||
if (row.is_category) cat_expanded = row.expanded;
|
||||
else if (!cat_expanded) continue;
|
||||
|
||||
int row_h = menu_row_height(row);
|
||||
|
||||
@@ -297,7 +297,7 @@ void desktop_draw_app_menu(DesktopState* ds) {
|
||||
Color::from_rgb(0xE8, 0xE8, 0xE8));
|
||||
|
||||
// Arrow indicator: > for collapsed, v for expanded
|
||||
bool expanded = (cur_cat >= 0 && cur_cat < MENU_NUM_CATS) && menu_cat_expanded[cur_cat];
|
||||
bool expanded = row.expanded;
|
||||
int ax = menu_x + 10;
|
||||
int ay = iy + row_h / 2;
|
||||
Color arrow_color = Color::from_rgb(0x88, 0x88, 0x88);
|
||||
|
||||
Reference in new issue
Block a user