# HG changeset patch # User Peter Nelson # Date 2023-01-21 18:02:39 # Node ID 3b543e103e8fc6e4b3495164c929d3196e3ccd3c # Parent 4c5a31cc3dda4c837188b851d28acdac52920706 Fix: Network server highlight invisible with RTL layout. diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -398,9 +398,8 @@ protected: /* show highlighted item with a different colour */ if (highlight) { - Rect r = {name.left, y, info.right, y + (int)this->resize.step_height - 1}; - Rect ir = r.Shrink(WidgetDimensions::scaled.bevel); - GfxFillRect(ir.left, ir.top, ir.right, ir.bottom, PC_GREY); + Rect r = {std::min(name.left, info.left), y, std::max(name.right, info.right), y + (int)this->resize.step_height - 1}; + GfxFillRect(r.Shrink(WidgetDimensions::scaled.bevel), PC_GREY); } /* offsets to vertically centre text and icons */