diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2008-01-13 00:11:43 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2008-01-13 00:11:43 +0000 |
| commit | a72499a12541fa0348e92f88662d1efe15b0ea47 (patch) | |
| tree | 32a874c093616649f49f4392207b738a6f7abed7 /apps/plugins/test_fps.c | |
| parent | 43cc03457d2bda7eb3057f242ff7b23a9856408c (diff) | |
| download | rockbox-a72499a12541fa0348e92f88662d1efe15b0ea47.zip rockbox-a72499a12541fa0348e92f88662d1efe15b0ea47.tar.gz rockbox-a72499a12541fa0348e92f88662d1efe15b0ea47.tar.bz2 rockbox-a72499a12541fa0348e92f88662d1efe15b0ea47.tar.xz | |
Greyscale library: Plugins can now put the management structure in IRAM for higher update speed. Use this in doom, mpegplayer, and zxbox. Made the api pointer part of the struct.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16066 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_fps.c')
| -rw-r--r-- | apps/plugins/test_fps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/test_fps.c b/apps/plugins/test_fps.c index fd1ee2a..37a93cc 100644 --- a/apps/plugins/test_fps.c +++ b/apps/plugins/test_fps.c @@ -257,6 +257,8 @@ static void time_remote_update(void) #endif #if LCD_DEPTH < 4 + +GREY_INFO_STRUCT static unsigned char greydata[LCD_HEIGHT][LCD_WIDTH]; static void make_grey_rect(int width, int height) @@ -312,7 +314,7 @@ static void time_greyscale(void) grey_release(); fps = calc_tenth_fps(frames_2, time_2); - load = 100 - (100* frames_2 * time_1) / (frames_1 * time_2); + load = 100 - (100 * frames_2 * time_1) / (frames_1 * time_2); rb->snprintf(str, sizeof(str), "1/1: %d.%d fps", fps / 10, fps % 10); log_text(str); |