mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
HDB: Fix uninitalised reads
This commit is contained in:
parent
9ab298748e
commit
e74bdbf410
@ -33,6 +33,9 @@ Gfx::Gfx() {
|
||||
_sines = new Common::SineTable(360);
|
||||
_cosines = new Common::CosineTable(360);
|
||||
_systemInit = false;
|
||||
|
||||
memset(&_fadeInfo, 0, sizeof(_fadeInfo));
|
||||
memset(&_snowInfo, 0, sizeof(_snowInfo));
|
||||
}
|
||||
|
||||
Gfx::~Gfx() {
|
||||
@ -199,11 +202,12 @@ void Gfx::fillScreen(uint32 color) {
|
||||
|
||||
void Gfx::updateVideo() {
|
||||
updateFade();
|
||||
g_hdb->checkProgress();
|
||||
|
||||
if (!g_hdb->_progressGfx)
|
||||
return;
|
||||
|
||||
g_hdb->checkProgress();
|
||||
|
||||
int left = kScreenWidth / 2 - g_hdb->_progressGfx->_width / 2;
|
||||
|
||||
Common::Rect clip(g_hdb->_progressGfx->getSurface()->getBounds());
|
||||
|
Loading…
Reference in New Issue
Block a user