core/MenuManager.cpp
changeset 776 c031ed44193c
parent 773 e68ac12d1cf6
child 778 07e49a8cf046
     1.1 --- a/core/MenuManager.cpp	Sun May 13 03:38:36 2007 +0000
     1.2 +++ b/core/MenuManager.cpp	Sun May 13 04:41:10 2007 +0000
     1.3 @@ -368,7 +368,7 @@
     1.4  	/* There were no items to draw! */
     1.5  	if (!foundItems)
     1.6  	{
     1.7 -		delete display;
     1.8 +		display->DeleteThis();
     1.9  		return NULL;
    1.10  	}
    1.11  
    1.12 @@ -520,9 +520,15 @@
    1.13  				slots[position].type = ItemSel_None;
    1.14  			}
    1.15  		}
    1.16 -		ItemDrawInfo dr(text, 0);
    1.17 +
    1.18 +		/* Put a fake spacer before control stuff, if possible */
    1.19 +		{
    1.20 +			ItemDrawInfo draw("", ITEMDRAW_RAWLINE|ITEMDRAW_SPACER);
    1.21 +			display->DrawItem(draw);
    1.22 +		}
    1.23  
    1.24  		/* PREVIOUS */
    1.25 +		ItemDrawInfo dr(text, 0);
    1.26  		if (displayPrev || canDrawDisabled)
    1.27  		{
    1.28  			CorePlayerTranslate(client, text, sizeof(text), "Back", NULL);