summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorTELK <telk5093@gmail.com>2021-06-13 17:06:50 +0900
committerGitHub <noreply@github.com>2021-06-13 10:06:50 +0200
commit2d0abf5a7643afb2b37ca8902d13f1df5c14f5ee (patch)
treec9addcd447e1d43d3eb85e51559a2be41b2b6ad5 /src/network
parent418e0ea85f69196845c16193954dedee33191cb5 (diff)
downloadopenttd-2d0abf5a7643afb2b37ca8902d13f1df5c14f5ee.tar.xz
Fix #9362: Hover in online players window was slightly too big (#9364)
This causes graphical glitches at the bottom of the window.
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index 9048ad854..3cdece77c 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -2349,7 +2349,7 @@ public:
if (this->hover_index >= 0) {
uint offset = this->hover_index * this->line_height;
- GfxFillRect(r.left + 2, r.top + offset, r.right - 1, r.top + offset + this->line_height - 1, GREY_SCALE(9));
+ GfxFillRect(r.left + 2, r.top + offset, r.right - 1, r.top + offset + this->line_height - 2, GREY_SCALE(9));
}
NetworkClientInfo *own_ci = NetworkClientInfo::GetByClientID(_network_own_client_id);