mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 20:34:12 +00:00
HDB: Fix Deliveries with no GFX
This commit is contained in:
parent
1edab20e02
commit
85b922895a
@ -1161,6 +1161,7 @@ void Window::drawDeliveries() {
|
||||
if (_dlvsInfo.delay1 < g_hdb->getTimeSlice()) {
|
||||
// Draw Item
|
||||
_gfxIndent->draw(drawX, drawY);
|
||||
if (d->itemGfx)
|
||||
d->itemGfx->drawMasked(drawX, drawY);
|
||||
|
||||
g_hdb->_gfx->setCursor(centerX - g_hdb->_gfx->stringLength(d->itemTextName) / 2, kDlvItemTextY);
|
||||
@ -1190,6 +1191,7 @@ void Window::drawDeliveries() {
|
||||
if (_dlvsInfo.delay3 < g_hdb->getTimeSlice()) {
|
||||
// Draw Delivery
|
||||
_gfxIndent->draw(drawX, drawY + kTileHeight + 16);
|
||||
if (d->destGfx)
|
||||
d->destGfx->drawMasked(drawX, drawY + kTileHeight + 16);
|
||||
|
||||
g_hdb->_gfx->setCursor(centerX - (g_hdb->_gfx->stringLength(d->destTextName) + g_hdb->_gfx->stringLength("to")) / 2, kDlvItemTextY + 12);
|
||||
@ -1204,9 +1206,11 @@ void Window::drawDeliveries() {
|
||||
} else {
|
||||
// Draw Item
|
||||
_gfxIndent->draw(drawX, drawY);
|
||||
if (d->itemGfx)
|
||||
d->itemGfx->drawMasked(drawX, drawY);
|
||||
// Draw Delivery
|
||||
_gfxIndent->draw(drawX, drawY + kTileHeight + 16);
|
||||
if (d->destGfx)
|
||||
d->destGfx->drawMasked(drawX, drawY + kTileHeight + 16);
|
||||
|
||||
if (!_dlvsInfo.animate && inv == _dlvsInfo.selected) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user