From a7cd2810379c8cae66f3819251dfbd385adf69f3 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sat, 10 Jan 2015 09:45:53 -0800 Subject: [PATCH] mark other INTERFACE_CLASSIC codepaths --- src/display.c | 6 ++++++ src/video/video.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/display.c b/src/display.c index c5627fe5..677ad977 100644 --- a/src/display.c +++ b/src/display.c @@ -45,8 +45,10 @@ uint8_t video__hires_odd[0x800]; uint8_t video__dhires1[256]; uint8_t video__dhires2[256]; +#ifdef INTERFACE_CLASSIC // Interface font static uint8_t video__int_font[3][0x4000]; +#endif int video__current_page; // current visual page int video__strictcolors = 1;// refactor : should be static @@ -472,6 +474,7 @@ void video_set(int flags) { video_initialize_dhires_values(); } +#ifdef INTERFACE_CLASSIC void video_loadfont_int(int first, int quantity, const uint8_t *data) { unsigned int i = quantity * 8; while (i--) { @@ -490,6 +493,7 @@ void video_loadfont_int(int first, int quantity, const uint8_t *data) { } } } +#endif // ---------------------------------------------------------------------------- // Plotting routines @@ -546,6 +550,7 @@ static inline void _plot_lores(uint8_t **d, const uint32_t val) { *((uint16_t *)(*d)) = (uint16_t)(val & 0xffff); } +#ifdef INTERFACE_CLASSIC void video_plotchar( int x, int y, int scheme, uint8_t c ) { uint8_t *d; uint8_t *s; @@ -563,6 +568,7 @@ void video_plotchar( int x, int y, int scheme, uint8_t c ) { _plot_char80(&d,&s); _plot_char80(&d,&s); } +#endif void video_init(void) { diff --git a/src/video/video.h b/src/video/video.h index c531f501..649ae8b0 100644 --- a/src/video/video.h +++ b/src/video/video.h @@ -92,6 +92,7 @@ void video_redraw(void); */ void video_setpage(int page); +#ifdef INTERFACE_CLASSIC /* Like loadfont, but writes to a seperate 256 character table used by * video_plotchar and not the apple text-mode display. */ @@ -108,6 +109,7 @@ void video_loadfont_int(int first, int qty, const uint8_t *data); * 2 - Red text on Black background */ void video_plotchar(int row, int col, int color, uint8_t code); +#endif /* * Get a reference to current internal framebuffer