[libnds] setBackdropColor()

Add your suggestions for toolchain improvements here.
Post Reply
User avatar
vuurrobin
Posts: 219
Joined: Fri Jul 11, 2008 8:49 pm
Location: The Netherlands
Contact:

[libnds] setBackdropColor()

Post by vuurrobin » Thu Sep 17, 2009 5:34 pm

is it possible to add the following functions to set the backdrop color on main and sub engine?

Code: Select all

/**
    @brief sets the backdrop color of the main engine.

    the backdrop color is displayed when all pixels at a given location are transparent
    (no sprite or background is visible there).

    @param color the color that the backdrop of the main engine should display.
*/
static inline void setBackdropColor(const u16 color)
{
    BG_PALETTE[0] = color;
}


/**
    @brief sets the backdrop color of the sub engine.

    the backdrop color is displayed when all pixels at a given location are transparent
    (no sprite or background is visible there).

    @param color the color that the backdrop of the sub engine should display.
*/
static inline void setBackdropColorSub(const u16 color)
{
    BG_PALETTE_SUB[0] = color;
}

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest