mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
TITANIC: Properly fix disappearing cconversation log text
This commit is contained in:
parent
121b07069c
commit
6a7688ad10
@ -185,10 +185,6 @@ void CGameManager::update() {
|
||||
if (_project) {
|
||||
CPetControl *pet = _project->getPetControl();
|
||||
|
||||
// FIXME: Distortion of text in Conversation tab when dragging items
|
||||
if (_dragItem)
|
||||
pet->makeDirty();
|
||||
|
||||
if (pet)
|
||||
_bounds.combine(pet->getBounds());
|
||||
}
|
||||
|
@ -275,11 +275,11 @@ WriteCharacterResult STFont::writeChar(CVideoSurface *surface, unsigned char c,
|
||||
charRect.left += srcRect->left - destPos.x;
|
||||
destPos.x = srcRect->left;
|
||||
} else {
|
||||
if ((charRect.width() + destPos.x) > srcRect->right) {
|
||||
if ((destPos.x + charRect.width()) > srcRect->right) {
|
||||
if (destPos.x > srcRect->right)
|
||||
return WC_OUTSIDE_RIGHT;
|
||||
|
||||
charRect.right += srcRect->left - destPos.x;
|
||||
charRect.right += srcRect->right - destPos.x - charRect.width();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user