Browse Source

added obsolete #warning to gdispInit()

remotes/origin_old/ugfx_release_2.6
Joel Bodenmann 9 years ago
parent
commit
c4f39fcdde
  1. 4
      include/gfx.h
  2. 7
      src/gfx.c

4
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
}

7
src/gfx.c

@ -105,3 +105,10 @@ void gfxInit(void) {
_gaudoutInit();
#endif
}
void gdispInit(void) {
#warning "gdispInit() is obsolete - please use gfxInit() instead"
gfxInit();
}
Loading…
Cancel
Save