aboutsummaryrefslogtreecommitdiffstats
path: root/include/gmisc
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-09-06 12:29:06 +1000
committerinmarket <andrewh@inmarket.com.au>2013-09-06 12:29:06 +1000
commit6e4437255b603b5b25360481507099dd9b92f942 (patch)
treee31ce6c06f5f155dd26ce41b9cc76cff945b2f40 /include/gmisc
parent439426667990b90f76f759ae8f993215c16770cd (diff)
downloaduGFX-6e4437255b603b5b25360481507099dd9b92f942.tar.gz
uGFX-6e4437255b603b5b25360481507099dd9b92f942.tar.bz2
uGFX-6e4437255b603b5b25360481507099dd9b92f942.zip
GDISP revamp - stage 1
New low level driver interface: Only Win32 ported currently Significant reduction in GDISP stack usage Improved performance particularly for native streaming drivers New circle, ellipse, arc routines (draw and fill) that are significantly more efficient and don't overdraw New arc draw algorithm that measures angles correctly. New arc fill algorithm for that actually works without overdrawing or gaps. Much more to come...
Diffstat (limited to 'include/gmisc')
-rw-r--r--include/gmisc/gmisc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gmisc/gmisc.h b/include/gmisc/gmisc.h
index 998dda50..5943e642 100644
--- a/include/gmisc/gmisc.h
+++ b/include/gmisc/gmisc.h
@@ -51,6 +51,7 @@ typedef int32_t fixed;
*/
#define FIXED(x) ((fixed)(x)<<16) /* @< integer to fixed */
#define NONFIXED(x) ((x)>>16) /* @< fixed to integer */
+#define FIXED0_5 32768 /* @< 0.5 as a fixed (used for rounding) */
#define FP2FIXED(x) ((fixed)((x)*65536.0)) /* @< floating point to fixed */
#define FIXED2FP(x) ((double)(x)/65536.0) /* @< fixed to floating point */
/* @} */