Changeset - r11899:7d5c519458e7
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-05-13 22:51:31
rubidium@openttd.org
(svn r16304) -Codechange: remove some magic numbers from the newgrf add window so it mirrors nicely.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf_gui.cpp
Show inline comments
 
@@ -165,8 +165,8 @@ struct NewGRFAddWindow : public Window {
 
				const char *text = (c->name != NULL && !StrEmpty(c->name)) ? c->name : c->filename;
 

	
 
				/* Draw selection background */
 
				if (h) GfxFillRect(3, y, this->width - 15, y + 9, 156);
 
				DrawString(4, this->width - 22, y, text, h ? TC_WHITE : TC_ORANGE);
 
				if (h) GfxFillRect(this->widget[ANGRFW_GRF_LIST].left + 1, y, this->widget[ANGRFW_GRF_LIST].right, y + 9, 156);
 
				DrawString(this->widget[ANGRFW_GRF_LIST].left + 2, this->widget[ANGRFW_GRF_LIST].right - 2, y, text, h ? TC_WHITE : TC_ORANGE);
 
				y += 10;
 
			}
 
		}
0 comments (0 inline, 0 general)