diff --git a/source/filelist.h b/source/filelist.h index 3fc91c6a..e0af26c3 100644 --- a/source/filelist.h +++ b/source/filelist.h @@ -14,4 +14,7 @@ extern const u8 background_png[]; extern const u32 background_png_size; +extern const u8 background169_png[]; +extern const u32 background169_png_size; + #endif diff --git a/source/images/background169.png b/source/images/background169.png new file mode 100644 index 00000000..223297a2 Binary files /dev/null and b/source/images/background169.png differ diff --git a/source/main.cpp b/source/main.cpp index c9c7148d..1d90785a 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -53,9 +53,15 @@ u8 * GetImageData(void) { int ret; - ctx = PNGU_SelectImageFromBuffer(background_png); - if (!ctx) - return NULL; + if (CONF_GetAspectRatio()) { + ctx = PNGU_SelectImageFromBuffer(background169_png); + if (!ctx) + return NULL; + } else { + ctx = PNGU_SelectImageFromBuffer(background_png); + if (!ctx) + return NULL; + } ret = PNGU_GetImageProperties(ctx, &imgProp); if (ret != PNGU_OK) @@ -80,7 +86,7 @@ void Background_Show(int x, int y, int z, u8 * data, int angle, int scaleX, int } -int main(int argc, char **argv) +int main(int argc, char **argv) { u32 cookie; FILE *exeFile = NULL; @@ -103,7 +109,7 @@ int main(int argc, char **argv) SDCard_Init(); USBDevice_Init(); char cfgpath[256]; - + sprintf(cfgpath, "SD:/config/GXGlobal.cfg"); if(!cfg_parsefile(cfgpath, &cfg_set)) //no cfg-File on SD: try USB: { @@ -157,7 +163,7 @@ int main(int argc, char **argv) SYS_ResetSystem(SYS_RETURNTOMENU, 0, 0); } fclose (exeFile); - + /* load entry point */ struct __argv args; bzero(&args, sizeof(args));