View unanswered posts | View active topics It is currently Mon Oct 20, 2014 12:18 pm



Reply to topic  [ 1 post ] 
 [libnds] setBackdropColor() 
Author Message
User avatar

Joined: Fri Jul 11, 2008 8:49 pm
Posts: 222
Location: The Netherlands
is it possible to add the following functions to set the backdrop color on main and sub engine?

Code:
/**
    @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;
}

_________________
my blog:
http://vuurrobin.100webcustomers.com/


Thu Sep 17, 2009 5:34 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
  Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.
Get devkitPro at SourceForge.net. Fast, secure and Free Open Source software downloads