Merge pull request #3 from WinterMute/example-24bit_Bitmap

Example 24bit bitmap
This commit is contained in:
Aurelio92 2014-12-21 13:25:36 +01:00
commit f8c73bdbd6
4 changed files with 2 additions and 3 deletions

View File

@ -57,7 +57,6 @@ LIBS := -lctru -lm
#---------------------------------------------------------------------------------
LIBDIRS := $(CTRULIB)
#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional
# rules for different file extensions

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

View File

@ -17,7 +17,7 @@
#include <string.h>
//This include a header containing definitions of our image
#include "drunkenlogo_rgb.h"
#include "brew_rgb.h"
int main(int argc, char **argv)
{
@ -41,7 +41,7 @@ int main(int argc, char **argv)
u8* fb = gfxGetFramebuffer(GFX_BOTTOM, GFX_LEFT, NULL, NULL);
//Copy our image in the bottom screen's frame buffer
memcpy(fb, drunkenlogo_rgb, drunkenlogo_rgb_size);
memcpy(fb, brew_rgb, brew_rgb_size);
// Main loop
while (aptMainLoop())