mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +00:00
(svn r13979) -Codechange: Use widget dimensions instead of magic number incantations for limiting small map area.
This commit is contained in:
parent
65f26bb737
commit
29ba35df7b
@ -896,7 +896,8 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
if (!FillDrawPixelInfo(&new_dpi, 3, 17, this->width - 28 + 22, this->height - 64 - 11 - diff)) return;
|
||||
const Widget *wi = &this->widget[SM_WIDGET_MAP];
|
||||
if (!FillDrawPixelInfo(&new_dpi, wi->left + 1, wi->top + 1, wi->right - wi->left - 1, wi->bottom - wi->top - 1)) return;
|
||||
|
||||
this->DrawSmallMap(&new_dpi);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user