HUGO: Do not set Surface::pixels directly anymore.

This commit is contained in:
Johannes Schickel 2013-08-03 03:50:06 +02:00
parent c22d914054
commit 61fcf86679

View File

@ -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)