summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLawrence Rust <lvr@softsystem.co.uk>2011-03-16 03:04:04 (GMT)
committer Mark Kendall <mkendall@mythtv.org>2011-03-16 03:04:04 (GMT)
commit7c60905a99248c19fd1279bd19a3d0af20a3e01c (patch)
tree4f56836d3f352f8ce62aa5f3eaede1dfa14a051a
parent9dc3c5309235828d7a355a8c50f6dbbe21471267 (diff)
OSX: Cross compilation fixes for libmythui
Signed-off-by: Mark Kendall <mkendall@mythtv.org>
-rw-r--r--mythtv/libs/libmythui/DisplayResOSX.cpp2
-rw-r--r--mythtv/libs/libmythui/mythrender_opengl.cpp4
-rw-r--r--mythtv/libs/libmythui/util-osx-cocoa.mm2
3 files changed, 4 insertions, 4 deletions
diff --git a/mythtv/libs/libmythui/DisplayResOSX.cpp b/mythtv/libs/libmythui/DisplayResOSX.cpp
index f36cec0..e536542 100644
--- a/mythtv/libs/libmythui/DisplayResOSX.cpp
+++ b/mythtv/libs/libmythui/DisplayResOSX.cpp
@@ -1,8 +1,6 @@
#include "DisplayResOSX.h"
-#import <CoreGraphics/CGBase.h>
-#import <CoreGraphics/CGDisplayConfiguration.h>
#import <Carbon/Carbon.h>
#import <IOKit/graphics/IOGraphicsLib.h> // for IODisplayCreateInfoDictionary()
diff --git a/mythtv/libs/libmythui/mythrender_opengl.cpp b/mythtv/libs/libmythui/mythrender_opengl.cpp
index 8b94052..4a98ed4 100644
--- a/mythtv/libs/libmythui/mythrender_opengl.cpp
+++ b/mythtv/libs/libmythui/mythrender_opengl.cpp
@@ -766,8 +766,10 @@ bool MythRenderOpenGL::InitFeatures(void)
}
GLint maxtexsz = 0;
+ GLint maxunits = 0;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxtexsz);
- glGetIntegerv(GL_MAX_TEXTURE_UNITS, &m_max_units);
+ glGetIntegerv(GL_MAX_TEXTURE_UNITS, &maxunits);
+ m_max_units = maxunits;
m_max_tex_size = (maxtexsz) ? maxtexsz : 512;
m_extensions = (const char*) glGetString(GL_EXTENSIONS);
diff --git a/mythtv/libs/libmythui/util-osx-cocoa.mm b/mythtv/libs/libmythui/util-osx-cocoa.mm
index 4a3e0ee..e9c1729 100644
--- a/mythtv/libs/libmythui/util-osx-cocoa.mm
+++ b/mythtv/libs/libmythui/util-osx-cocoa.mm
@@ -48,5 +48,5 @@ CGDirectDisplayID GetOSXCocoaDisplay(void* view)
if (!screen)
return NULL;
NSDictionary* desc = [screen deviceDescription];
- return [[desc objectForKey:@"NSScreenNumber"] intValue];
+ return (CGDirectDisplayID)[[desc objectForKey:@"NSScreenNumber"] intValue];
}