aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoel Bodenmann <joel.bodenmann@hevs.ch>2012-10-24 22:51:25 +0200
committerJoel Bodenmann <joel.bodenmann@hevs.ch>2012-10-24 22:51:25 +0200
commit563d24096206c3e557d5d5433c612418afccfe6d (patch)
treeddbec3ab1603aefc72c059c81956a5403d009731 /include
parent707ade1f2ffbfd4671441da87caafdfbc99ce965 (diff)
downloaduGFX-563d24096206c3e557d5d5433c612418afccfe6d.tar.gz
uGFX-563d24096206c3e557d5d5433c612418afccfe6d.tar.bz2
uGFX-563d24096206c3e557d5d5433c612418afccfe6d.zip
macro fixes
Diffstat (limited to 'include')
-rw-r--r--include/gdisp.h4
-rw-r--r--include/graph.h12
2 files changed, 12 insertions, 4 deletions
diff --git a/include/gdisp.h b/include/gdisp.h
index bf1e7dbe..9e3a3b77 100644
--- a/include/gdisp.h
+++ b/include/gdisp.h
@@ -27,6 +27,10 @@
#ifndef _GDISP_H
#define _GDISP_H
+#ifndef GFX_USE_GDISP
+ #define GFX_USE_GDISP FALSE
+#endif
+
#if GFX_USE_GDISP || defined(__DOXYGEN__)
/*===========================================================================*/
diff --git a/include/graph.h b/include/graph.h
index 980ed996..9b4603bd 100644
--- a/include/graph.h
+++ b/include/graph.h
@@ -21,15 +21,19 @@
#ifndef GRAPH_H
#define GRAPH_H
+#ifndef GFX_USE_GRAPH
+ #define GFX_USE_GRAPH FALSE
+#endif
+
#if GFX_USE_GRAPH
typedef struct _Graph {
coord_t origin_x;
coord_t origin_y;
- int xmin;
- int xmax;
- int ymin;
- int ymax;
+ coord_t xmin;
+ coord_t xmax;
+ coord_t ymin;
+ coord_t ymax;
uint16_t grid_size;
uint16_t dot_space;
bool_t full_grid;