diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2008-12-14 17:58:04 +0000 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2008-12-14 17:58:04 +0000 |
| commit | 524c5409c351a6d847037ca37637c7d324f13628 (patch) | |
| tree | 84d4b04c9f5c9962ad875f8c332f16de3490a81b | |
| parent | 47981d078528a342cc75b26901867d3fa4b73cc4 (diff) | |
| download | rockbox-524c5409c351a6d847037ca37637c7d324f13628.zip rockbox-524c5409c351a6d847037ca37637c7d324f13628.tar.gz rockbox-524c5409c351a6d847037ca37637c7d324f13628.tar.bz2 rockbox-524c5409c351a6d847037ca37637c7d324f13628.tar.xz | |
remove unneeded test
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19439 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/recorder/resize.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c index 4761884..4c91b7b 100644 --- a/apps/recorder/resize.c +++ b/apps/recorder/resize.c @@ -34,6 +34,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <general.h> #include "inttypes.h" #include "debug.h" #include "lcd.h" @@ -699,7 +700,10 @@ int resize_on_load(struct bitmap *bm, bool dither, struct dim *src, #if MAX_SC_STACK_ALLOC uint8_t sc_buf[(needed <= len || needed > MAX_SC_STACK_ALLOC) ? 0 : needed]; + if (len && buf) #endif + len = (unsigned int)align_buffer((void**)&buf, len, + sizeof(uint32_t)); if (needed > len) { #if MAX_SC_STACK_ALLOC |