ILLUSIONS: Use screen pixel format when creating surfaces

This commit is contained in:
johndoe123 2014-04-04 10:09:42 +02:00 committed by Eugene Sandulenko
parent 08899f5e9b
commit 6d17b40796

View File

@ -47,10 +47,8 @@ Screen::~Screen() {
}
Graphics::Surface *Screen::allocSurface(int16 width, int16 height) {
// TODO Use screen pixel format?
Graphics::PixelFormat pixelFormat16(2, 5, 6, 5, 0, 11, 5, 0, 0);
Graphics::Surface *surface = new Graphics::Surface();
surface->create(width, height, pixelFormat16);
surface->create(width, height, _vm->_system->getScreenFormat());
return surface;
}