settings_gui.c
changeset 579 e977d17c89b1
parent 568 b0d0df062880
child 625 40c83b088bb8
equal deleted inserted replaced
578:1e66514eb621 579:e977d17c89b1
  1033 				bool h = (_sel_grffile==c);
  1033 				bool h = (_sel_grffile==c);
  1034 				// show highlighted item with a different background and highlighted text
  1034 				// show highlighted item with a different background and highlighted text
  1035 				if(h) GfxFillRect(1, y + 1, 267, y + 12, 156);
  1035 				if(h) GfxFillRect(1, y + 1, 267, y + 12, 156);
  1036 				// XXX - will be grf name later
  1036 				// XXX - will be grf name later
  1037 				DoDrawString(c->filename, 25, y + 2, h ? 0xC : 0x10);
  1037 				DoDrawString(c->filename, 25, y + 2, h ? 0xC : 0x10);
  1038 				DrawSprite(SPRITE_PALETTE(0x2EB | 0x30b8000), 5, y + 3);
  1038 				DrawSprite(SPRITE_PALETTE(SPR_SQUARE | 0x30b8000), 5, y + 2);
  1039 				y += NEWGRF_WND_PROC_ROWSIZE;
  1039 				y += NEWGRF_WND_PROC_ROWSIZE;
  1040 			}
  1040 			}
  1041 
  1041 
  1042 			c = c->next;
  1042 			c = c->next;
  1043 			if (++i == w->vscroll.cap + w->vscroll.pos) break; // stop after displaying 12 items
  1043 			if (++i == w->vscroll.cap + w->vscroll.pos) break; // stop after displaying 12 items