summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pictureflow
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-06-03 06:06:11 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-06-03 06:06:11 +0000
commit840ab7c72421b2d8dbb1587fe486498599b05a31 (patch)
treef4b431caa662f65112938d4a2f3e59d97a48776a /apps/plugins/pictureflow
parent19ac88475d051de2abe38247bcb8c307bad24d2e (diff)
downloadrockbox-840ab7c72421b2d8dbb1587fe486498599b05a31.tar.gz
rockbox-840ab7c72421b2d8dbb1587fe486498599b05a31.tar.bz2
rockbox-840ab7c72421b2d8dbb1587fe486498599b05a31.zip
Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21173 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pictureflow')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index ef40ea6e28..bec3bde040 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -2721,12 +2721,14 @@ enum plugin_status plugin_start(const void *parameter)
buf = rb->plugin_get_buffer(&buf_size);
#else
buf = rb->plugin_get_audio_buffer(&buf_size);
+#ifndef SIMULATOR
if ((uintptr_t)buf < (uintptr_t)plugin_start_addr)
{
uint32_t tmp_size = (uintptr_t)plugin_start_addr - (uintptr_t)buf;
buf_size = MIN(buf_size, tmp_size);
}
#endif
+#endif
ret = main();
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);