Changeset - r18566:ff522e798962
[Not reviewed]
master
0 1 0
alberth - 13 years ago 2011-12-04 10:52:08
alberth@openttd.org
(svn r23421) -Fix [FS#4865, FS#4861] (r23393): The priority of WC_GAME_OPTIONS windows were too high, causing hiding of currency window as well.
1 file changed with 0 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/window.cpp
Show inline comments
 
@@ -893,54 +893,49 @@ static uint GetWindowZPriority(const Win
 

	
 
		case WC_HIGHSCORE:
 
			++z_priority;
 

	
 
		case WC_TOOLTIPS:
 
			++z_priority;
 

	
 
		case WC_DROPDOWN_MENU:
 
			++z_priority;
 

	
 
		case WC_MAIN_TOOLBAR:
 
		case WC_STATUS_BAR:
 
			++z_priority;
 

	
 
		case WC_QUERY_STRING:
 
			++z_priority;
 

	
 
		case WC_ERRMSG:
 
		case WC_CONFIRM_POPUP_QUERY:
 
		case WC_MODAL_PROGRESS:
 
		case WC_NETWORK_STATUS_WINDOW:
 
			++z_priority;
 

	
 
		case WC_SAVELOAD:
 
		case WC_GAME_OPTIONS:
 
		case WC_NETWORK_WINDOW:
 
		case WC_GRF_PARAMETERS:
 
		case WC_NEWGRF_TEXTFILE:
 
		case WC_AI_LIST:
 
		case WC_AI_SETTINGS:
 
			++z_priority;
 

	
 
		case WC_CONSOLE:
 
			++z_priority;
 

	
 
		case WC_SEND_NETWORK_MSG:
 
		case WC_NEWS_WINDOW:
 
			++z_priority;
 

	
 
		default:
 
			++z_priority;
 

	
 
		case WC_MAIN_WINDOW:
 
			return z_priority;
 
	}
 
}
 

	
 
/**
 
 * Adds a window to the z-ordering, according to its z-priority.
 
 * @param w Window to add
 
 */
 
static void AddWindowToZOrdering(Window *w)
 
{
 
	assert(w->z_front == NULL && w->z_back == NULL);
0 comments (0 inline, 0 general)