mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-21 03:31:40 +00:00
VIDEO: Use || instead of the currently incorrect &&
The code currenly has 4 logically dead lines. Instead of requiring both newWidth and newHeight to be non zero, just make sure one of them is non zero and set the other one to the current size.
This commit is contained in:
parent
15c6293128
commit
32e85a957d
@ -176,7 +176,7 @@ const Graphics::Surface *FlicDecoder::FlicVideoTrack::decodeNextFrame() {
|
||||
uint16 newWidth = _fileStream->readUint16LE();
|
||||
uint16 newHeight = _fileStream->readUint16LE();
|
||||
|
||||
if ((newWidth != 0) && (newHeight != 0)) {
|
||||
if ((newWidth != 0) || (newHeight != 0)) {
|
||||
if (newWidth == 0)
|
||||
newWidth = _surface->w;
|
||||
if (newHeight == 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user