summaryrefslogtreecommitdiff
path: root/src/video/cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'src/video/cocoa')
-rw-r--r--src/video/cocoa/cocoa_v.mm1
-rw-r--r--src/video/cocoa/event.mm4
2 files changed, 1 insertions, 4 deletions
diff --git a/src/video/cocoa/cocoa_v.mm b/src/video/cocoa/cocoa_v.mm
index 530e1ddb1..0a0834686 100644
--- a/src/video/cocoa/cocoa_v.mm
+++ b/src/video/cocoa/cocoa_v.mm
@@ -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();
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();