(svn r13139) -Codechange: move DrawWindowWidgets and DrawWindowViewport to the Window class and remove Window from their naming.

This commit is contained in:
rubidium
2008-05-17 12:48:06 +00:00
parent 7f6ccdc624
commit a89b5721a8
41 changed files with 156 additions and 159 deletions

View File

@@ -194,7 +194,7 @@ static void GameOptionsWndProc(Window *w, WindowEvent *e)
SetDParam(8, SPECSTR_SCREENSHOT_START + _cur_screenshot_format);
w->SetWidgetLoweredState(GAMEOPT_FULLSCREEN, _fullscreen);
DrawWindowWidgets(w);
w->DrawWidgets();
DrawString(20, 175, STR_OPTIONS_FULLSCREEN, TC_FROMSTRING); // fullscreen
} break;
@@ -565,7 +565,7 @@ public:
virtual void OnPaint()
{
DrawWindowWidgets(this);
this->DrawWidgets();
/* XXX - Disabled buttons in normal gameplay or during muliplayer as non server.
* Bitshifted for each button to see if that bit is set. If it is set, the
@@ -903,7 +903,7 @@ struct PatchesSelectionWindow : Window {
uint i;
/* Set up selected category */
DrawWindowWidgets(this);
this->DrawWidgets();
x = 5;
y = 47;
@@ -1159,7 +1159,7 @@ struct CustomCurrencyWindow : Window {
{
int x;
int y = 20;
DrawWindowWidgets(this);
this->DrawWidgets();
/* exchange rate */
DrawArrowButtons(10, y, 3, GB(this->click, 0, 2), true, true);