FREESCAPE: show title screen in driller zx spectrum

This commit is contained in:
neuromancer 2022-12-28 09:34:20 -03:00
parent b02d2d5874
commit 2c6b185fe1
3 changed files with 8 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

View File

@ -182,6 +182,14 @@ void FreescapeEngine::drawTitle() {
return;
_gfx->setViewport(_fullscreenViewArea);
if (isSpectrum()) {
Graphics::Surface *title = new Graphics::Surface();
title->create(320, 200, _title->format);
title->copyRectToSurface(*_title, (320 - _title->w) / 2, (200 - _title->h) / 2, Common::Rect(_title->w, _title->h));
_title->free();
delete _title;
_title = title;
}
if (!_titleTexture)
_titleTexture = _gfx->createTexture(_title);
_gfx->drawTexturedRect2D(_fullscreenViewArea, _fullscreenViewArea, _titleTexture);