Commit 223ed51d authored by Jan Djärv's avatar Jan Djärv
Browse files

* nsfont.m (nsfont_draw): Use CGFloat for GNUstep newer than 0.23.

Fixes: debbugs:18030
parent 249635f0
2014-10-05 Jan Djärv <jan.h.d@swipnet.se> 2014-10-05 Jan Djärv <jan.h.d@swipnet.se>
   
* nsfont.m (nsfont_draw): Use CGFloat for GNUstep newer than
0.23 (Bug#18030).
* nsterm.m (syms_of_nsterm): ns-use-fullscreen-animation is new. * nsterm.m (syms_of_nsterm): ns-use-fullscreen-animation is new.
(toggleFullScreen:): Use ns-use-fullscreen-animation for animate. (toggleFullScreen:): Use ns-use-fullscreen-animation for animate.
(ns_select, ns_read_socket): Use unwind_protect to decrease (ns_select, ns_read_socket): Use unwind_protect to decrease
......
...@@ -1039,8 +1039,13 @@ is false when (FROM > 0 || TO < S->nchars). */ ...@@ -1039,8 +1039,13 @@ is false when (FROM > 0 || TO < S->nchars). */
static unsigned char cbuf[1024]; static unsigned char cbuf[1024];
unsigned char *c = cbuf; unsigned char *c = cbuf;
#ifdef NS_IMPL_GNUSTEP #ifdef NS_IMPL_GNUSTEP
#if GNUSTEP_GUI_MAJOR_VERSION > 0 || GNUSTEP_GUI_MINOR_VERSION > 22
static CGFloat advances[1024];
CGFloat *adv = advances;
#else
static float advances[1024]; static float advances[1024];
float *adv = advances; float *adv = advances;
#endif
#else #else
static CGSize advances[1024]; static CGSize advances[1024];
CGSize *adv = advances; CGSize *adv = advances;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment