summaryrefslogtreecommitdiff
path: root/src/video/cocoa/event.mm
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-12-19 18:46:40 +0000
committerfrosch <frosch@openttd.org>2009-12-19 18:46:40 +0000
commit29d6491605bb13e7a751b2a1a8b8728f17bbc54b (patch)
treed36add5885667a83011cef1fdbfe90d5ce548dfd /src/video/cocoa/event.mm
parent7572f95448308fd19cd91ea1416ddf6320f51247 (diff)
downloadopenttd-29d6491605bb13e7a751b2a1a8b8728f17bbc54b.tar.xz
(svn r18545) -Fix [FS#3292]: Assign '_screen.dst_ptr' as soon as it is allocated.
Diffstat (limited to 'src/video/cocoa/event.mm')
-rw-r--r--src/video/cocoa/event.mm4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm
index fef866f53..284be0657 100644
--- a/src/video/cocoa/event.mm
+++ b/src/video/cocoa/event.mm
@@ -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();