mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
GROOVIE: Replace TODO about YUV data with a comment.
Since the surfaces in question are never used outside the ROQ code it is fine to use a faked RGB pixel format even when they are actually YUV data.
This commit is contained in:
parent
53d982b24f
commit
8ff527ac4e
@ -328,9 +328,11 @@ bool ROQPlayer::processBlockInfo(ROQBlockHeader &blockHeader) {
|
||||
_prevBuf->free();
|
||||
|
||||
// Allocate new buffers
|
||||
// TODO: According to the comment below these are actually YUV
|
||||
// surfaces, thus we can not setup a proper PixelFormat here.
|
||||
// Think of a proper way to indicate that it is YUV data.
|
||||
// These buffers use YUV data, since we can not describe it with a
|
||||
// PixelFormat struct we just add some dummy PixelFormat with the
|
||||
// correct bytes per pixel value. Since the surfaces are only used
|
||||
// internally and no code assuming RGB data is present is used on
|
||||
// them it should be just fine.
|
||||
_currBuf->create(width, height, Graphics::PixelFormat(3, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
_prevBuf->create(width, height, Graphics::PixelFormat(3, 0, 0, 0, 0, 0, 0, 0, 0));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user