mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 07:39:08 +00:00
VOYEUR: Fix a couple of uninitialized variables in RL2VideoTrack and GraphicsManager
This commit is contained in:
parent
c47d8a4597
commit
27a098cd65
@ -227,13 +227,14 @@ RL2Decoder::RL2VideoTrack::RL2VideoTrack(const RL2FileHeader &header, RL2AudioTr
|
||||
Common::SeekableReadStream *stream):
|
||||
_header(header), _audioTrack(audioTrack), _fileStream(stream) {
|
||||
|
||||
_frameOffsets = nullptr;
|
||||
|
||||
// Set up surfaces
|
||||
_surface = new Graphics::Surface();
|
||||
_surface->create(320, 200, Graphics::PixelFormat::createFormatCLUT8());
|
||||
_backSurface = nullptr;
|
||||
|
||||
_hasBackFrame = header._backSize != 0;
|
||||
|
||||
_backSurface = NULL;
|
||||
if (_hasBackFrame)
|
||||
initBackSurface();
|
||||
|
||||
|
@ -49,6 +49,7 @@ GraphicsManager::GraphicsManager(): _defaultDrawInfo(1, Common::Point()), _drawP
|
||||
_fontPtr = NULL;
|
||||
Common::fill(&_VGAColors[0], &_VGAColors[PALETTE_SIZE], 0);
|
||||
_fontChar = new PictureResource(0, 0xff, 0xff, 0, Common::Rect(), 0, NULL, 0);
|
||||
_backColors = nullptr;
|
||||
}
|
||||
|
||||
void GraphicsManager::sInitGraphics() {
|
||||
|
Loading…
Reference in New Issue
Block a user