mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
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
This commit is contained in:
parent
c0d9084d6a
commit
2fbf09752d
12 changed files with 23 additions and 59 deletions
|
|
@ -31,6 +31,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
|
||||
#include <system.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue