mirror of https://github.com/OpenTTD/OpenTTD
Fix: Network server highlight invisible with RTL layout.
parent
df2b66ad5d
commit
b6609d1833
|
@ -398,9 +398,8 @@ protected:
|
||||||
|
|
||||||
/* show highlighted item with a different colour */
|
/* show highlighted item with a different colour */
|
||||||
if (highlight) {
|
if (highlight) {
|
||||||
Rect r = {name.left, y, info.right, y + (int)this->resize.step_height - 1};
|
Rect r = {std::min(name.left, info.left), y, std::max(name.right, info.right), y + (int)this->resize.step_height - 1};
|
||||||
Rect ir = r.Shrink(WidgetDimensions::scaled.bevel);
|
GfxFillRect(r.Shrink(WidgetDimensions::scaled.bevel), PC_GREY);
|
||||||
GfxFillRect(ir.left, ir.top, ir.right, ir.bottom, PC_GREY);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* offsets to vertically centre text and icons */
|
/* offsets to vertically centre text and icons */
|
||||||
|
|
Loading…
Reference in New Issue