summaryrefslogtreecommitdiff
path: root/src/screen_xywh.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2015-06-10 10:53:25 +0000
committerManolo Gouy <Manolo>2015-06-10 10:53:25 +0000
commit416c0d99d3c6657ed927ca0ed877214261fa4b32 (patch)
tree4f5acad55bbfbd117884e1ac58dd6df373378490 /src/screen_xywh.cxx
parentd4081333979be37f0666a9c24acc745eb94582a8 (diff)
Mac OS: remove 5 compilation warnings of this kind:
warning: comparison of function 'CGDataConsumerCreateWithCFData' not equal to a null pointer is always true note: prefix with the address-of operator to silence this warning git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10747 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/screen_xywh.cxx')
-rw-r--r--src/screen_xywh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx
index a0a18890e..f470ec3eb 100644
--- a/src/screen_xywh.cxx
+++ b/src/screen_xywh.cxx
@@ -131,7 +131,7 @@ static void screen_init() {
screens[i].width = int(r.size.width);
screens[i].height = int(r.size.height);
//fprintf(stderr,"screen %d %dx%dx%dx%d\n",i,screens[i].x,screens[i].y,screens[i].width,screens[i].height);
- if (CGDisplayScreenSize != NULL) {
+ if (&CGDisplayScreenSize != NULL) {
CGSize s = CGDisplayScreenSize(displays[i]); // from 10.3
dpi_h[i] = screens[i].width / (s.width/25.4);
dpi_v[i] = screens[i].height / (s.height/25.4);