summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-02 16:57:14 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-02 16:57:14 +0000
commit1509faf618641a5dd1e8b33e0c1617dc521aa27c (patch)
tree030e4cfc799fc978399bf6295afee4bb5966178d
parentea92e4c2d7993565afa4284088bb8387fe092017 (diff)
downloadrockbox-1509faf618641a5dd1e8b33e0c1617dc521aa27c.tar.gz
rockbox-1509faf618641a5dd1e8b33e0c1617dc521aa27c.zip
Use IRAM where appropriate when testing framerate, for more realistic results for the greyscale library.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16481 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/plugins/test_fps.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/test_fps.c b/apps/plugins/test_fps.c
index 37a93cc489..6da5255e13 100644
--- a/apps/plugins/test_fps.c
+++ b/apps/plugins/test_fps.c
@@ -22,6 +22,8 @@
22 22
23#ifdef HAVE_LCD_BITMAP 23#ifdef HAVE_LCD_BITMAP
24 24
25PLUGIN_IRAM_DECLARE
26
25#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \ 27#if (CONFIG_KEYPAD == IPOD_4G_PAD) || (CONFIG_KEYPAD == IPOD_3G_PAD) || \
26 (CONFIG_KEYPAD == IPOD_1G2G_PAD) 28 (CONFIG_KEYPAD == IPOD_1G2G_PAD)
27#define FPS_QUIT BUTTON_MENU 29#define FPS_QUIT BUTTON_MENU
@@ -258,7 +260,7 @@ static void time_remote_update(void)
258 260
259#if LCD_DEPTH < 4 261#if LCD_DEPTH < 4
260 262
261GREY_INFO_STRUCT 263GREY_INFO_STRUCT_IRAM
262static unsigned char greydata[LCD_HEIGHT][LCD_WIDTH]; 264static unsigned char greydata[LCD_HEIGHT][LCD_WIDTH];
263 265
264static void make_grey_rect(int width, int height) 266static void make_grey_rect(int width, int height)
@@ -337,6 +339,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter)
337#endif 339#endif
338 340
339 /* standard stuff */ 341 /* standard stuff */
342 PLUGIN_IRAM_INIT(api)
340 (void)parameter; 343 (void)parameter;
341 rb = api; 344 rb = api;
342 345