diff options
| author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 14:49:24 +0100 |
|---|---|---|
| committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2026-10-27 14:49:24 +0100 |
| commit | f519a707e32679ec512518afc3c56eeec03c260a (patch) | |
| tree | 4feafb56364dc1b7692ea25c0e20adeb4019c890 /crates/gipfel-desktop/icons/android/mipmap-xhdpi | |
| parent | a9b47f2414cb662de5fab5660602e6de03eb1ba2 (diff) | |
web: process label layout right-to-left like the desktop
The desktop lays out labels in alpha-descending order (the C
pointer-array sort), which on screen means right to left — so the
leftmost peak of a collision cluster ends up on top of the stack.
The web port sorted by screen x ascending, inverting every stack and
making labels look assigned to the wrong peaks. Sort descending; the
break-early scan in layout_label_y stays valid because it only relies
on monotonic x, and labels extend rightward just like in C.
Verified against the desktop rendering of the same panorama photo and
a right-to-left replay of the layout in the label simulator.
Diffstat (limited to 'crates/gipfel-desktop/icons/android/mipmap-xhdpi')
0 files changed, 0 insertions, 0 deletions
