mirror of
https://github.com/modmii/YAWM-ModMii-Edition.git
synced 2024-11-21 23:59:18 +01:00
Update the background
This commit is contained in:
parent
e2098ad049
commit
7d13d45861
BIN
data/background
BIN
data/background
Binary file not shown.
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 70 KiB |
16
source/gui.c
16
source/gui.c
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
#define CONSOLE_XCOORD 70
|
#define CONSOLE_XCOORD 70
|
||||||
#define CONSOLE_YCOORD 118
|
#define CONSOLE_YCOORD 114
|
||||||
#define CONSOLE_WIDTH 502
|
#define CONSOLE_WIDTH 502
|
||||||
#define CONSOLE_HEIGHT 300
|
#define CONSOLE_HEIGHT 300
|
||||||
|
|
||||||
@ -46,12 +46,12 @@ s32 __Gui_DrawPng(void *img, u32 x, u32 y)
|
|||||||
|
|
||||||
if(!ctx)
|
if(!ctx)
|
||||||
{
|
{
|
||||||
/* Select PNG data */
|
/* Select PNG data */
|
||||||
ctx = PNGU_SelectImageFromBuffer(img);
|
ctx = PNGU_SelectImageFromBuffer(img);
|
||||||
if (!ctx) {
|
if (!ctx) {
|
||||||
ret = -1;
|
ret = -1;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* Get image properties */
|
/* Get image properties */
|
||||||
ret = PNGU_GetImageProperties(ctx, &imgProp);
|
ret = PNGU_GetImageProperties(ctx, &imgProp);
|
||||||
@ -84,7 +84,7 @@ void Gui_InitConsole(void)
|
|||||||
void Gui_DrawBackground(void)
|
void Gui_DrawBackground(void)
|
||||||
{
|
{
|
||||||
extern char bgData[];
|
extern char bgData[];
|
||||||
|
|
||||||
/* Draw background */
|
/* Draw background */
|
||||||
__Gui_DrawPng(bgData, 0, 0);
|
__Gui_DrawPng(bgData, 0, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user