summaryrefslogtreecommitdiff
path: root/src/company_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-12-22 19:40:23 +0000
committeralberth <alberth@openttd.org>2009-12-22 19:40:23 +0000
commit7dbc77a1e74be00f520e84fa1605a9ba42a05879 (patch)
treeb114f8aaaa25f3b844ec8321b963fd05731e8a8f /src/company_gui.cpp
parent3d2c126268a6fd23c0009348cd31853b182cf917 (diff)
downloadopenttd-7dbc77a1e74be00f520e84fa1605a9ba42a05879.tar.xz
(svn r18605) -Codechange: Coding style fixes, prevent useless calls to UpdateWidgetSize().
Diffstat (limited to 'src/company_gui.cpp')
-rw-r--r--src/company_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/company_gui.cpp b/src/company_gui.cpp
index 8a8016d51..2eaeef22a 100644
--- a/src/company_gui.cpp
+++ b/src/company_gui.cpp
@@ -392,7 +392,7 @@ struct CompanyFinancesWindow : Window {
*/
void SetupWidgets()
{
- int plane = small ? STACKED_SELECTION_ZERO_SIZE : 0;
+ int plane = this->small ? STACKED_SELECTION_ZERO_SIZE : 0;
this->GetWidget<NWidgetStacked>(CFW_SEL_PANEL)->SetDisplayedPlane(plane);
this->GetWidget<NWidgetStacked>(CFW_SEL_MAXLOAN)->SetDisplayedPlane(plane);
@@ -404,7 +404,7 @@ struct CompanyFinancesWindow : Window {
virtual void OnPaint()
{
if (!this->IsShaded()) {
- if (!small) {
+ if (!this->small) {
/* Check that the expenses panel height matches the height needed for the layout. */
int type = _settings_client.gui.expenses_layout;
if (_expenses_list_types[type].GetHeight() != this->GetWidget<NWidgetBase>(CFW_EXPS_CATEGORY)->current_y) {