mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 04:28:37 +00:00
FREESCAPE: show title screen in driller zx spectrum
This commit is contained in:
parent
b02d2d5874
commit
2c6b185fe1
BIN
devtools/create_freescape/driller-zx_ZX Spectrum_title.bmp
Normal file
BIN
devtools/create_freescape/driller-zx_ZX Spectrum_title.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 144 KiB |
Binary file not shown.
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user