Changeset - r9362:57b3c1845ef4
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-05-26 10:28:59
peter1138@openttd.org
(svn r13259) -Fix: Subsidy text could still overflow
1 file changed with 7 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/subsidy_gui.cpp
Show inline comments
 
@@ -118,11 +118,14 @@ struct SubsidyListWindow : Window {
 

	
 
				/* Displays the two offered towns */
 
				SetupSubsidyDecodeParam(s, 1);
 
				x2 = DrawStringTruncated(x + 2, y, STR_2027_FROM_TO, TC_FROMSTRING, width);
 
				x2 = DrawStringTruncated(x + 2, y, STR_2027_FROM_TO, TC_FROMSTRING, width - 2);
 

	
 
				/* Displays the deadline before voiding the proposal */
 
				SetDParam(0, _date - ymd.day + 384 - s->age * 32);
 
				DrawStringTruncated(x2, y, STR_2028_BY, TC_FROMSTRING, width - x2);
 
				if (width - x2 > 10) {
 
					/* Displays the deadline before voiding the proposal */
 
					SetDParam(0, _date - ymd.day + 384 - s->age * 32);
 
					DrawStringTruncated(x2, y, STR_2028_BY, TC_FROMSTRING, width - x2);
 
				}
 

	
 
				y += 10;
 
				num++;
 
			}
0 comments (0 inline, 0 general)