Index: src/train_gui.cpp
===================================================================
--- src/train_gui.cpp (Revision 28004)
+++ src/train_gui.cpp (Arbeitskopie)
@@ -375,6 +375,10 @@
uint dx = 0;
int px = x;
const Train *u = v;
+ bool separate_sprite_row = (dx > (uint)ScaleGUITrad(TRAIN_DETAILS_MAX_INDENT));
+
+ GfxFillRect(left, /*py - WD_MATRIX_TOP - 1*/, right, /*py - WD_MATRIX_TOP*/, _colour_gradient[COLOUR_GREY][5]);
+
do {
Point offset;
int width = u->GetDisplayImageWidth(&offset);
@@ -394,7 +398,6 @@
u = u->Next();
} while (u != NULL && u->IsArticulatedPart());
- bool separate_sprite_row = (dx > (uint)ScaleGUITrad(TRAIN_DETAILS_MAX_INDENT));
if (separate_sprite_row) {
vscroll_pos--;
dx = 0;
@@ -407,9 +410,6 @@
int data_right = right - (rtl ? sprite_width : 0);
if (vscroll_pos <= 0 && vscroll_pos > -vscroll_cap) {
int py = y - line_height * vscroll_pos + text_y_offset;
- if (i > 0 || separate_sprite_row) {
- if (vscroll_pos != 0) GfxFillRect(left, py - WD_MATRIX_TOP - 1, right, py - WD_MATRIX_TOP, _colour_gradient[COLOUR_GREY][5]);
- }
switch (det_tab) {
case TDW_TAB_CARGO:
if (i < _cargo_summary.Length()) {