summaryrefslogtreecommitdiff
path: root/src/video/cocoa
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-08-10 12:47:18 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-08-10 12:47:18 +0000
commitf42d60150dbddf0da00173667f963c8bdb038efb (patch)
treeb2f4f7a731a0a9fadc28155e5f36c1ac498abc84 /src/video/cocoa
parenta9fde2856c08b78f43aae5d6a2c94d8b78062511 (diff)
downloadopenttd-f42d60150dbddf0da00173667f963c8bdb038efb.tar.xz
(svn r25711) -Fix: don't use NULL as integer
Diffstat (limited to 'src/video/cocoa')
-rw-r--r--src/video/cocoa/fullscreen.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/fullscreen.mm b/src/video/cocoa/fullscreen.mm
index 86de2cdc9..e066adfb4 100644
--- a/src/video/cocoa/fullscreen.mm
+++ b/src/video/cocoa/fullscreen.mm
@@ -313,7 +313,7 @@ class FullscreenSubdriver: public CocoaSubdriver {
* disable until a replacement can be found. */
if (MacOSVersionIsAtLeast(10, 7, 0)) {
this->window_buffer = NULL;
- this->window_pitch = NULL;
+ this->window_pitch = 0;
} else {
#if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7)
this->window_buffer = CGDisplayBaseAddress(this->display_id);