settings_gui.c
changeset 2187 a0e206ce9fbf
parent 2186 db48cf29b983
child 2201 f240b3c7e2ec
equal deleted inserted replaced
2186:db48cf29b983 2187:a0e206ce9fbf
  1178 				bool h = (_sel_grffile==c);
  1178 				bool h = (_sel_grffile==c);
  1179 				// show highlighted item with a different background and highlighted text
  1179 				// show highlighted item with a different background and highlighted text
  1180 				if(h) GfxFillRect(1, y + 1, 267, y + 12, 156);
  1180 				if(h) GfxFillRect(1, y + 1, 267, y + 12, 156);
  1181 				// XXX - will be grf name later
  1181 				// XXX - will be grf name later
  1182 				DoDrawString(c->filename, 25, y + 2, h ? 0xC : 0x10);
  1182 				DoDrawString(c->filename, 25, y + 2, h ? 0xC : 0x10);
  1183 				DrawSprite(SPRITE_PALETTE(SPR_SQUARE | 0x30b8000), 5, y + 2);
  1183 				DrawSprite(SPRITE_PALETTE(SPR_SQUARE | PALETTE_TO_RED), 5, y + 2);
  1184 				y += NEWGRF_WND_PROC_ROWSIZE;
  1184 				y += NEWGRF_WND_PROC_ROWSIZE;
  1185 			}
  1185 			}
  1186 
  1186 
  1187 			c = c->next;
  1187 			c = c->next;
  1188 			if (++i == w->vscroll.cap + w->vscroll.pos) break; // stop after displaying 12 items
  1188 			if (++i == w->vscroll.cap + w->vscroll.pos) break; // stop after displaying 12 items