aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2014-10-05 19:51:11 +0200
committerJan Djärv2014-10-05 19:51:11 +0200
commit223ed51dc5e78444db5601397ff77ad2e36577bc (patch)
tree01722ca0fcdd4de5100864208cc0ba6a8d109e93
parent249635f0dfb22bcae4c7134e95f01640a6a0d149 (diff)
downloademacs-223ed51dc5e78444db5601397ff77ad2e36577bc.tar.gz
emacs-223ed51dc5e78444db5601397ff77ad2e36577bc.zip
* nsfont.m (nsfont_draw): Use CGFloat for GNUstep newer than 0.23.
Fixes: debbugs:18030
-rw-r--r--src/ChangeLog3
-rw-r--r--src/nsfont.m5
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 835a241cf9d..d3874dbbadc 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12014-10-05 Jan Djärv <jan.h.d@swipnet.se> 12014-10-05 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * nsfont.m (nsfont_draw): Use CGFloat for GNUstep newer than
4 0.23 (Bug#18030).
5
3 * nsterm.m (syms_of_nsterm): ns-use-fullscreen-animation is new. 6 * nsterm.m (syms_of_nsterm): ns-use-fullscreen-animation is new.
4 (toggleFullScreen:): Use ns-use-fullscreen-animation for animate. 7 (toggleFullScreen:): Use ns-use-fullscreen-animation for animate.
5 (ns_select, ns_read_socket): Use unwind_protect to decrease 8 (ns_select, ns_read_socket): Use unwind_protect to decrease
diff --git a/src/nsfont.m b/src/nsfont.m
index 202ebe10c97..13c7b0bce2c 100644
--- a/src/nsfont.m
+++ b/src/nsfont.m
@@ -1039,8 +1039,13 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y,
1039 static unsigned char cbuf[1024]; 1039 static unsigned char cbuf[1024];
1040 unsigned char *c = cbuf; 1040 unsigned char *c = cbuf;
1041#ifdef NS_IMPL_GNUSTEP 1041#ifdef NS_IMPL_GNUSTEP
1042#if GNUSTEP_GUI_MAJOR_VERSION > 0 || GNUSTEP_GUI_MINOR_VERSION > 22
1043 static CGFloat advances[1024];
1044 CGFloat *adv = advances;
1045#else
1042 static float advances[1024]; 1046 static float advances[1024];
1043 float *adv = advances; 1047 float *adv = advances;
1048#endif
1044#else 1049#else
1045 static CGSize advances[1024]; 1050 static CGSize advances[1024];
1046 CGSize *adv = advances; 1051 CGSize *adv = advances;