Skip to content

Commit

Permalink
Fix includes for rawfb demos
Browse files Browse the repository at this point in the history
  • Loading branch information
RobLoach committed Apr 4, 2024
1 parent 6bed7c6 commit 541348c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
10 changes: 5 additions & 5 deletions demo/rawfb/sdl2/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@
#endif

#ifdef INCLUDE_STYLE
#include "../../demo/common/style.c"
#include "../../common/style.c"
#endif
#ifdef INCLUDE_CALCULATOR
#include "../../demo/common/calculator.c"
#include "../../common/calculator.c"
#endif
#ifdef INCLUDE_CANVAS
#include "../../demo/common/canvas.c"
#include "../../common/canvas.c"
#endif
#ifdef INCLUDE_OVERVIEW
#include "../../demo/common/overview.c"
#include "../../common/overview.c"
#endif
#ifdef INCLUDE_NODE_EDITOR
#include "../../demo/common/node_editor.c"
#include "../../common/node_editor.c"
#endif

static int translate_sdl_key(struct SDL_Keysym const *k)
Expand Down
11 changes: 5 additions & 6 deletions demo/rawfb/wayland/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#define NK_INCLUDE_DEFAULT_FONT
#define NK_INCLUDE_SOFTWARE_FONT


#include <wayland-client.h>
#include <stdlib.h>
#include <fcntl.h>
Expand Down Expand Up @@ -75,19 +74,19 @@ struct nk_wayland {
#endif

#ifdef INCLUDE_STYLE
#include "../../demo/common/style.c"
#include "../../common/style.c"
#endif
#ifdef INCLUDE_CALCULATOR
#include "../../demo/common/calculator.c"
#include "../../common/calculator.c"
#endif
#ifdef INCLUDE_CANVAS
#include "../../demo/common/canvas.c"
#include "../../common/canvas.c"
#endif
#ifdef INCLUDE_OVERVIEW
#include "../../demo/common/overview.c"
#include "../../common/overview.c"
#endif
#ifdef INCLUDE_NODE_EDITOR
#include "../../demo/common/node_editor.c"
#include "../../common/node_editor.c"
#endif


Expand Down
10 changes: 5 additions & 5 deletions demo/rawfb/x11/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,19 +126,19 @@ sleep_for(long t)
#endif

#ifdef INCLUDE_STYLE
#include "../../demo/common/style.c"
#include "../../common/style.c"
#endif
#ifdef INCLUDE_CALCULATOR
#include "../../demo/common/calculator.c"
#include "../../common/calculator.c"
#endif
#ifdef INCLUDE_CANVAS
#include "../../demo/common/canvas.c"
#include "../../common/canvas.c"
#endif
#ifdef INCLUDE_OVERVIEW
#include "../../demo/common/overview.c"
#include "../../common/overview.c"
#endif
#ifdef INCLUDE_NODE_EDITOR
#include "../../demo/common/node_editor.c"
#include "../../common/node_editor.c"
#endif

/* ===============================================================
Expand Down

0 comments on commit 541348c

Please sign in to comment.