(svn r18545) -Fix [FS#3292]: Assign '_screen.dst_ptr' as soon as it is allocated.
This commit is contained in:
@@ -194,6 +194,7 @@ void QZ_GameSizeChanged()
|
||||
_screen.width = _cocoa_subdriver->GetWidth();
|
||||
_screen.height = _cocoa_subdriver->GetHeight();
|
||||
_screen.pitch = _cocoa_subdriver->GetWidth();
|
||||
_screen.dst_ptr = _cocoa_subdriver->GetPixelBuffer();
|
||||
_fullscreen = _cocoa_subdriver->IsFullscreen();
|
||||
|
||||
GameSizeChanged();
|
||||
|
||||
@@ -603,7 +603,6 @@ void QZ_GameLoop()
|
||||
uint32 st = 0;
|
||||
#endif
|
||||
|
||||
_screen.dst_ptr = _cocoa_subdriver->GetPixelBuffer();
|
||||
DisplaySplashImage();
|
||||
QZ_CheckPaletteAnim();
|
||||
_cocoa_subdriver->Draw(true);
|
||||
@@ -611,7 +610,6 @@ void QZ_GameLoop()
|
||||
|
||||
for (int i = 0; i < 2; i++) GameLoop();
|
||||
|
||||
_screen.dst_ptr = _cocoa_subdriver->GetPixelBuffer();
|
||||
UpdateWindows();
|
||||
QZ_CheckPaletteAnim();
|
||||
_cocoa_subdriver->Draw();
|
||||
@@ -651,7 +649,6 @@ void QZ_GameLoop()
|
||||
|
||||
GameLoop();
|
||||
|
||||
_screen.dst_ptr = _cocoa_subdriver->GetPixelBuffer();
|
||||
UpdateWindows();
|
||||
if (++pal_tick > 4) {
|
||||
QZ_CheckPaletteAnim();
|
||||
@@ -666,7 +663,6 @@ void QZ_GameLoop()
|
||||
#ifdef _DEBUG
|
||||
st += GetTick() - st0;
|
||||
#endif
|
||||
_screen.dst_ptr = _cocoa_subdriver->GetPixelBuffer();
|
||||
NetworkDrawChatMessage();
|
||||
DrawMouseCursor();
|
||||
_cocoa_subdriver->Draw();
|
||||
|
||||
Reference in New Issue
Block a user