PARALLACTION: Fix assert when starting The Big Red Adventure

This commit is contained in:
Cameron Cawley 2020-09-10 14:38:21 +01:00 committed by David Turner
parent b50368a1d8
commit d20122d916

View File

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