From 2fbf09752d385af861279af195d68f920859202d Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Tue, 13 Jan 2009 13:48:26 +0000 Subject: remove align_buffer from firmare/general.c, replacing with ALIGN_BUFFER macro, and replace all uses of it (only resize.c in core, and pictureflow and mpegplayer plugins), remove it from plugin_api, and remove wrapper for it from plugin.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19758 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/resize.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/recorder/resize.c') diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c index 99ccc84d55..2e6c3ff266 100644 --- a/apps/recorder/resize.c +++ b/apps/recorder/resize.c @@ -31,6 +31,7 @@ * ****************************************************************************/ +#include #include #include #include @@ -616,10 +617,7 @@ int resize_on_load(struct bitmap *bm, bool dither, struct dim *src, uint8_t sc_buf[(needed <= len || needed > MAX_SC_STACK_ALLOC) ? 0 : needed]; #endif -#if CONFIG_CODEC == SWCODEC - len = (unsigned int)align_buffer(PUN_PTR(void**, &buf), len, - sizeof(uint32_t)); -#endif + ALIGN_BUFFER(buf, len, sizeof(uint32_t)); if (needed > len) { #if MAX_SC_STACK_ALLOC -- cgit v1.2.3