VIPadFrameBufferWidth

C Specification

#include <revolution/vi.h>
#define VIPadFrameBufferWidth(width)    \
((u16)(((u16)(width) + 15) & ~15))

Arguments

width the width of the XFB in pixels

Return Values

An unsigned 16-bit integer rounded up to the nearest 16-pixel boundary.

Description

This function rounds up width to the nearest 16-pixel boundary.

See Also

Revision History

03/01/2006 Initial version.