wayland: fix submenu cascade arrow to point right
The triangle was drawn with increasing width from left to right, making it point left. Reverse the vertical span so the widest part is on the left and it tapers to a point on the right.
This commit is contained in:
parent
b79f699a35
commit
95c4101ed3
|
|
@ -9394,11 +9394,11 @@ static void wl_menu_paint_entry(WMenu *menu, int index, int selected)
|
|||
w - 8 - tw, text_y, entry->rtext, strlen(entry->rtext));
|
||||
}
|
||||
|
||||
/* Draw cascade arrow for submenus */
|
||||
/* Draw cascade arrow for submenus (right-pointing triangle) */
|
||||
if (entry->cascade >= 0) {
|
||||
int ay = y + h / 2;
|
||||
for (int i = 0; i < 5; i++)
|
||||
for (int j = -i; j <= i; j++)
|
||||
for (int j = -(4 - i); j <= (4 - i); j++)
|
||||
if (w - 12 + i < w && ay + j >= 0 && ay + j < fb->height)
|
||||
dst[(ay + j) * stride + (w - 12 + i)] = selected ? 0xFFFFFFFF : 0xFF000000;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue