From 0cbc6f43aaf63069d795c851aa8d2439d741f63e Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 15 Apr 2024 20:59:29 -0400 Subject: [PATCH] Add CANVAS demo --- demo/xcb_cairo/main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/demo/xcb_cairo/main.c b/demo/xcb_cairo/main.c index aaa8bcf..5f19b27 100644 --- a/demo/xcb_cairo/main.c +++ b/demo/xcb_cairo/main.c @@ -37,17 +37,20 @@ static void die(const char *fmt, ...) * ===============================================================*/ /* This are some code examples to provide a small overview of what can be * done with this library. To try out an example uncomment the defines */ -/*#define INCLUDE_ALL*/ + +/*#define INCLUDE_ALL */ #define INCLUDE_STYLE /*#define INCLUDE_CALCULATOR */ #define INCLUDE_OVERVIEW /*#define INCLUDE_NODE_EDITOR */ +/*#define INCLUDE_CANVAS */ #ifdef INCLUDE_ALL #define INCLUDE_STYLE #define INCLUDE_CALCULATOR #define INCLUDE_OVERVIEW #define INCLUDE_NODE_EDITOR + #define INCLUDE_CANVAS #endif #ifdef INCLUDE_STYLE @@ -62,6 +65,9 @@ static void die(const char *fmt, ...) #ifdef INCLUDE_NODE_EDITOR #include "../common/node_editor.c" #endif +#ifdef INCLUDE_CANVAS + #include "../common/canvas.c" +#endif /* =============================================================== * @@ -142,6 +148,9 @@ main(void) #ifdef INCLUDE_NODE_EDITOR node_editor(ctx); #endif + #ifdef INCLUDE_CANVAS + canvas(ctx); + #endif /* ----------------------------------------- */ /* Render */