mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 17:33:05 +00:00
ILLUSIONS: Use screen pixel format when creating surfaces
This commit is contained in:
parent
08899f5e9b
commit
6d17b40796
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user