Merge pull request #3 from WinterMute/example-24bit_Bitmap
Example 24bit bitmap
This commit is contained in:
commit
f8c73bdbd6
@ -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
|
||||
|
BIN
examples/graphics/bitmap/24bit-color/gfx/brew.png
Normal file
BIN
examples/graphics/bitmap/24bit-color/gfx/brew.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 138 KiB |
Binary file not shown.
Before Width: | Height: | Size: 68 KiB |
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user