Changeset - r13754:55872e4820c5
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-11-25 21:30:45
rubidium@openttd.org
(svn r18289) -Codechange: if using RTL draw the toolbar in the reverse direction so the buttons overlap 'nicely'
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/toolbar_gui.cpp
Show inline comments
 
@@ -1014,7 +1014,8 @@ public:
 
		GfxFillRect(this->pos_x, this->pos_y, this->pos_x + this->current_x - 1, this->pos_y + this->current_y - 1, 0xB2);
 
		GfxFillRect(this->pos_x, this->pos_y, this->pos_x + this->current_x - 1, this->pos_y + this->current_y - 1, 0xB4, FILLRECT_CHECKER);
 

	
 
		for (NWidgetBase *child_wid = this->head; child_wid != NULL; child_wid = child_wid->next) {
 
		bool rtl = _dynlang.text_dir == TD_RTL;
 
		for (NWidgetBase *child_wid = rtl ? this->tail : this->head; child_wid != NULL; child_wid = rtl ? child_wid->prev : child_wid->next) {
 
			if (child_wid->type == NWID_SPACER) continue;
 
			if (!this->visible[((NWidgetCore*)child_wid)->index]) continue;
 

	
0 comments (0 inline, 0 general)