aboutsummaryrefslogtreecommitdiffstats
path: root/demos/modules/gwin/graph
diff options
context:
space:
mode:
Diffstat (limited to 'demos/modules/gwin/graph')
-rw-r--r--demos/modules/gwin/graph/gfxconf.h32
-rw-r--r--demos/modules/gwin/graph/main.c26
2 files changed, 29 insertions, 29 deletions
diff --git a/demos/modules/gwin/graph/gfxconf.h b/demos/modules/gwin/graph/gfxconf.h
index 3fc8fde1..c2ec7963 100644
--- a/demos/modules/gwin/graph/gfxconf.h
+++ b/demos/modules/gwin/graph/gfxconf.h
@@ -31,32 +31,32 @@
#define _GFXCONF_H
/* The operating system to use. One of these must be defined - preferably in your Makefile */
-//#define GFX_USE_OS_CHIBIOS FALSE
-//#define GFX_USE_OS_WIN32 FALSE
-//#define GFX_USE_OS_LINUX FALSE
-//#define GFX_USE_OS_OSX FALSE
+//#define GFX_USE_OS_CHIBIOS GFXOFF
+//#define GFX_USE_OS_WIN32 GFXOFF
+//#define GFX_USE_OS_LINUX GFXOFF
+//#define GFX_USE_OS_OSX GFXOFF
/* GFX sub-systems to turn on */
-#define GFX_USE_GDISP TRUE
-#define GFX_USE_GWIN TRUE
-#define GFX_USE_GMISC TRUE
-#define GFX_USE_GTIMER TRUE
-#define GFX_USE_GQUEUE TRUE
+#define GFX_USE_GDISP GFXON
+#define GFX_USE_GWIN GFXON
+#define GFX_USE_GMISC GFXON
+#define GFX_USE_GTIMER GFXON
+#define GFX_USE_GQUEUE GFXON
/* Features for the GDISP sub-system. */
-#define GDISP_NEED_VALIDATION TRUE
-#define GDISP_NEED_CLIP TRUE
-#define GDISP_NEED_MULTITHREAD TRUE
+#define GDISP_NEED_VALIDATION GFXON
+#define GDISP_NEED_CLIP GFXON
+#define GDISP_NEED_MULTITHREAD GFXON
/* Features for the GWIN subsystem. */
-#define GWIN_NEED_WINDOWMANAGER TRUE
-#define GWIN_NEED_GRAPH TRUE
+#define GWIN_NEED_WINDOWMANAGER GFXON
+#define GWIN_NEED_GRAPH GFXON
/* Features for the GQUEUE subsystem. */
-#define GQUEUE_NEED_ASYNC TRUE
+#define GQUEUE_NEED_ASYNC GFXON
/* Features for the GMISC subsystem. */
-#define GMISC_NEED_FASTTRIG TRUE
+#define GMISC_NEED_FASTTRIG GFXON
#endif /* _GFXCONF_H */
diff --git a/demos/modules/gwin/graph/main.c b/demos/modules/gwin/graph/main.c
index 23a6a564..2ca4d1a6 100644
--- a/demos/modules/gwin/graph/main.c
+++ b/demos/modules/gwin/graph/main.c
@@ -41,23 +41,23 @@ static const point data[5] = {
// A graph styling
static GGraphStyle GraphStyle1 = {
- { GGRAPH_POINT_DOT, 0, Blue }, // Point
- { GGRAPH_LINE_NONE, 2, Gray }, // Line
- { GGRAPH_LINE_SOLID, 0, White }, // X axis
- { GGRAPH_LINE_SOLID, 0, White }, // Y axis
- { GGRAPH_LINE_DASH, 5, Gray, 50 }, // X grid
- { GGRAPH_LINE_DOT, 7, Yellow, 50 }, // Y grid
+ { GGRAPH_POINT_DOT, 0, GFX_BLUE }, // Point
+ { GGRAPH_LINE_NONE, 2, GFX_GRAY }, // Line
+ { GGRAPH_LINE_SOLID, 0, GFX_WHITE }, // X axis
+ { GGRAPH_LINE_SOLID, 0, GFX_WHITE }, // Y axis
+ { GGRAPH_LINE_DASH, 5, GFX_GRAY, 50 }, // X grid
+ { GGRAPH_LINE_DOT, 7, GFX_YELLOW, 50 }, // Y grid
GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS // Flags
};
// Another graph styling
static const GGraphStyle GraphStyle2 = {
- { GGRAPH_POINT_SQUARE, 5, Red }, // Point
- { GGRAPH_LINE_DOT, 2, Pink }, // Line
- { GGRAPH_LINE_SOLID, 0, White }, // X axis
- { GGRAPH_LINE_SOLID, 0, White }, // Y axis
- { GGRAPH_LINE_DASH, 5, Gray, 50 }, // X grid
- { GGRAPH_LINE_DOT, 7, Yellow, 50 }, // Y grid
+ { GGRAPH_POINT_SQUARE, 5, GFX_RED }, // Point
+ { GGRAPH_LINE_DOT, 2, GFX_PINK }, // Line
+ { GGRAPH_LINE_SOLID, 0, GFX_WHITE }, // X axis
+ { GGRAPH_LINE_SOLID, 0, GFX_WHITE }, // Y axis
+ { GGRAPH_LINE_DASH, 5, GFX_GRAY, 50 }, // X grid
+ { GGRAPH_LINE_DOT, 7, GFX_YELLOW, 50 }, // Y grid
GWIN_GRAPH_STYLE_POSITIVE_AXIS_ARROWS // Flags
};
@@ -90,7 +90,7 @@ int main(void) {
// Modify the style
gwinGraphStartSet(gh);
- GraphStyle1.point.color = Green;
+ GraphStyle1.point.color = GFX_GREEN;
gwinGraphSetStyle(gh, &GraphStyle1);
// Draw a different sine wave