mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
HUGO: Do not set Surface::pixels directly anymore.
This commit is contained in:
parent
c22d914054
commit
61fcf86679
@ -89,11 +89,7 @@ void intro_v1d::preNewGame() {
|
||||
void intro_v1d::introInit() {
|
||||
_introState = 0;
|
||||
_introTicks = 0;
|
||||
_surf.w = 320;
|
||||
_surf.h = 200;
|
||||
_surf.pixels = _vm->_screen->getFrontBuffer();
|
||||
_surf.pitch = 320;
|
||||
_surf.format = Graphics::PixelFormat::createFormatCLUT8();
|
||||
_surf.init(320, 200, 320, _vm->_screen->getFrontBuffer(), Graphics::PixelFormat::createFormatCLUT8());
|
||||
_vm->_screen->displayList(kDisplayInit);
|
||||
}
|
||||
|
||||
@ -243,11 +239,7 @@ void intro_v2d::preNewGame() {
|
||||
void intro_v2d::introInit() {
|
||||
_vm->_screen->displayList(kDisplayInit);
|
||||
_vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen
|
||||
_surf.w = 320;
|
||||
_surf.h = 200;
|
||||
_surf.pixels = _vm->_screen->getFrontBuffer();
|
||||
_surf.pitch = 320;
|
||||
_surf.format = Graphics::PixelFormat::createFormatCLUT8();
|
||||
_surf.init(320, 200, 320, _vm->_screen->getFrontBuffer(), Graphics::PixelFormat::createFormatCLUT8());
|
||||
|
||||
char buffer[128];
|
||||
|
||||
@ -289,11 +281,7 @@ void intro_v3d::preNewGame() {
|
||||
void intro_v3d::introInit() {
|
||||
_vm->_screen->displayList(kDisplayInit);
|
||||
_vm->_file->readBackground(_vm->_numScreens - 1); // display splash screen
|
||||
_surf.w = 320;
|
||||
_surf.h = 200;
|
||||
_surf.pixels = _vm->_screen->getFrontBuffer();
|
||||
_surf.pitch = 320;
|
||||
_surf.format = Graphics::PixelFormat::createFormatCLUT8();
|
||||
_surf.init(320, 200, 320, _vm->_screen->getFrontBuffer(), Graphics::PixelFormat::createFormatCLUT8());
|
||||
|
||||
char buffer[128];
|
||||
if (_vm->_boot._registered)
|
||||
|
Loading…
Reference in New Issue
Block a user