mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-03 15:41:41 +00:00
PARALLACTION: Fix assert when starting The Big Red Adventure
This commit is contained in:
parent
b50368a1d8
commit
d20122d916
@ -856,8 +856,8 @@ void Gfx::setBackground(uint type, BackgroundInfo *info) {
|
||||
_backgroundInfo->finalizePath();
|
||||
|
||||
if (_gameType == GType_BRA) {
|
||||
int width = CLIP(info->width, (int)_vm->_screenWidth, info->width);
|
||||
int height = CLIP(info->height, (int)_vm->_screenHeight, info->height);
|
||||
int width = MAX(info->width, (int)_vm->_screenWidth);
|
||||
int height = MAX(info->height, (int)_vm->_screenHeight);
|
||||
|
||||
if (width != _backBuffer.w || height != _backBuffer.h) {
|
||||
_backBuffer.create(width, height, Graphics::PixelFormat::createFormatCLUT8());
|
||||
|
Loading…
Reference in New Issue
Block a user