summaryrefslogtreecommitdiff
path: root/src/video/cocoa/cocoa_v.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/cocoa_v.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/cocoa_v.mm')
-rw-r--r--src/video/cocoa/cocoa_v.mm1
1 files changed, 1 insertions, 0 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();