Changeset - r13682:2cd8c1ab2515
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-11-22 13:01:07
rubidium@openttd.org
(svn r18217) -Codechange: make the livery window big font aware
1 file changed with 10 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/company_gui.cpp
Show inline comments
 
@@ -624,8 +624,16 @@ public:
 
				break;
 

	
 
			case SCLW_WIDGET_SEC_COL_DROPDOWN:
 
				if (!_loaded_newgrf_features.has_2CC) size->width = 0;
 
				break;
 
				if (!_loaded_newgrf_features.has_2CC) {
 
					size->width = 0;
 
					break;
 
				}
 
				/* Fall through */
 
			case SCLW_WIDGET_PRI_COL_DROPDOWN: {
 
				for (const StringID *id = _colour_dropdown; id != endof(_colour_dropdown); id++) {
 
					size->width = max(size->width, GetStringBoundingBox(*id).width + 34);
 
				}
 
			} break;
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)