VIPadFrameBufferWidth

Syntax

#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

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL