aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/gfx.h4
-rw-r--r--src/gfx.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/include/gfx.h b/include/gfx.h
index ac9a5382..b2c84daf 100644
--- a/include/gfx.h
+++ b/include/gfx.h
@@ -199,8 +199,8 @@ extern "C" {
*/
void gfxInit(void);
- /* Compatibility for old programs */
- #define gdispInit() gfxInit()
+ /* compatibility for old programs - throws a #warning */
+ void gdispInit(void);
#ifdef __cplusplus
}
diff --git a/src/gfx.c b/src/gfx.c
index c14dffb0..ffc38c84 100644
--- a/src/gfx.c
+++ b/src/gfx.c
@@ -105,3 +105,10 @@ void gfxInit(void) {
_gaudoutInit();
#endif
}
+
+void gdispInit(void) {
+ #warning "gdispInit() is obsolete - please use gfxInit() instead"
+
+ gfxInit();
+}
+