GRAPHICS: Fix bug in MacText::draw() on calculating bounding rect size
Change is _surface->w to _surface->h in the fourth arg to Common::Rect
This commit is contained in:
parent
f2f420e15f
commit
b127beb03c
3 changed files with 11 additions and 2 deletions
|
@ -333,8 +333,8 @@ void MacText::draw(ManagedSurface *g, int x, int y, int w, int h, int xoff, int
|
|||
g->fillRect(Common::Rect(x, y, x + w, y + w), _bgcolor);
|
||||
}
|
||||
|
||||
g->blitFrom(*_surface, Common::Rect(MIN<int>(_surface->w, x), MIN<int>(_surface->h, y),
|
||||
MIN<int>(_surface->w, x + w), MIN<int>(_surface->w, y + w)),
|
||||
g->blitFrom(*_surface, Common::Rect(MIN<int>(_surface->w, x), MIN<int>(_surface->h, y),
|
||||
MIN<int>(_surface->w, x + w), MIN<int>(_surface->h, y + w)),
|
||||
Common::Point(xoff, yoff));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue