From 8d3e3056f75fbcd8e7db6cc396981750fb65806b Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Sun, 24 Dec 2017 17:43:30 -0500 Subject: fix red once more Change-Id: I6290cc6cca468c197656236d3dd31c3f72c53842 --- apps/plugins/SOURCES | 2 ++ apps/plugins/SUBDIRS | 5 +++++ apps/plugins/lib/stdio_compat.c | 5 ----- apps/plugins/sdl/main.c | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) (limited to 'apps') diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index ea0173a56d..132dd534f2 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES @@ -76,8 +76,10 @@ iriverify.c #if defined(HAVE_LCD_COLOR) && \ (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && (PLUGIN_BUFFER_SIZE > 0x14000) duke3d.c #endif +#endif #if PLUGIN_BUFFER_SIZE <= 0x20000 && defined(HAVE_LCD_BITMAP) diff --git a/apps/plugins/SUBDIRS b/apps/plugins/SUBDIRS index aa63c3c94b..62b1a6a83d 100644 --- a/apps/plugins/SUBDIRS +++ b/apps/plugins/SUBDIRS @@ -16,7 +16,12 @@ clock #if defined(HAVE_LCD_COLOR) && \ (!defined(LCD_STRIDEFORMAT) || (LCD_STRIDEFORMAT != VERTICAL_STRIDE)) xworld + +/* for duke, etc. */ +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) && (PLUGIN_BUFFER_SIZE > 0x14000) sdl +#endif + puzzles #endif diff --git a/apps/plugins/lib/stdio_compat.c b/apps/plugins/lib/stdio_compat.c index c1d5a7bc77..2adc4236d2 100644 --- a/apps/plugins/lib/stdio_compat.c +++ b/apps/plugins/lib/stdio_compat.c @@ -120,16 +120,11 @@ size_t _fwrite_(const void *ptr, size_t size, size_t nmemb, _FILE_ *stream) return ret / size; } -#if 0 /* stderr, stdout (disabled) */ else { - char buf[10]; - rb->snprintf(buf, 10, "%%%ds", (int)(size*nmemb)); - rb->splashf(HZ, buf, ptr); return size * nmemb; } -#endif } int _fseek_(_FILE_ *stream, long offset, int whence) diff --git a/apps/plugins/sdl/main.c b/apps/plugins/sdl/main.c index 5a3e016553..f679867a17 100644 --- a/apps/plugins/sdl/main.c +++ b/apps/plugins/sdl/main.c @@ -250,7 +250,7 @@ enum plugin_status plugin_start(const void *param) /* we always use the audio buffer */ size_t sz; audiobuf = rb->plugin_get_audio_buffer(&sz); -#ifndef SIMULATOR +#if (CONFIG_PLATFORM & PLATFORM_NATIVE) if ((uintptr_t)audiobuf < (uintptr_t)plugin_start_addr) { uint32_t tmp_size = (uintptr_t)plugin_start_addr - (uintptr_t)audiobuf; -- cgit v1.2.3