Changeset - r13579:0b78e691a532
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-11-16 11:54:59
rubidium@openttd.org
(svn r18113) -Fix: RTL glitch in play heightmap window
1 file changed with 8 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/genworld_gui.cpp
Show inline comments
 
@@ -476,9 +476,14 @@ struct GenerateLandscapeWindow : public 
 
	virtual void DrawWidget(const Rect &r, int widget) const
 
	{
 
		switch (widget) {
 
			case GLAND_HEIGHTMAP_NAME_TEXT:
 
				DrawString(r.left, this->width - WD_FRAMERECT_RIGHT, r.top, this->name, TC_ORANGE);
 
				break;
 
			case GLAND_HEIGHTMAP_NAME_TEXT: {
 
				/* Little bit of a hack going on here; just to get the widgets
 
				 * spaced without doing much magic. The space we can draw on is
 
				 * covered by both the spacer and text widgets, so take their
 
				 * outer most boundaries (left and right) as draw locations. */
 
				const NWidgetCore *nwi_spacer = this->GetWidget<NWidgetCore>(GLAND_HEIGHTMAP_NAME_SPACER);
 
				DrawString(min(r.left, nwi_spacer->pos_x), max<int>(r.right, nwi_spacer->pos_x + nwi_spacer->current_x), r.top, this->name, TC_ORANGE);
 
			} break;
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)