ÂÂÂÂ/* Select PNG data - this is the magic line */
ÂÂÂÂsnprintf(imgPath, sizeof(imgPath), "fat0:/images/small/small%c%c%c%c%c%c.png", ascii(header->id[0]), ascii(header->id[1]), ascii(header->id[2]), ascii(header->id[3]), ascii(header->id[4]), ascii(header->id[5]));
ÂÂÂÂctx = PNGU_SelectImageFromDevice(imgPath);
ÂÂÂÂif (!ctx) {
ÂÂÂÂÂÂÂÂreturn;
ÂÂÂÂ}
ÂÂÂÂ/* Get image properties */
ÂÂÂÂret = PNGU_GetImageProperties(ctx, &imgProp);
ÂÂÂÂif (ret != PNGU_OK) {
ÂÂÂÂÂÂÂÂPNGU_ReleaseImageContext(ctx);
ÂÂÂÂÂÂÂÂ/* No game image available so use default */
ÂÂÂÂÂÂÂÂctx = PNGU_SelectImageFromDevice("fat0:/images/small/smallnoimage.png");
ÂÂÂÂÂÂÂÂif (!ctx)
ÂÂÂÂÂÂÂÂÂÂÂÂreturn;
ÂÂÂÂÂÂÂÂ/* Get image properties */
ÂÂÂÂÂÂÂÂret = PNGU_GetImageProperties(ctx, &imgProp);
ÂÂÂÂÂÂÂÂif (ret != PNGU_OK)
ÂÂÂÂÂÂÂÂÂÂÂÂreturn;
ÂÂÂÂ}
ÂÂÂÂ/* Draw image */
ÂÂÂÂ//Video_DrawPng(ctx, imgProp, 60, 110);
ÂÂÂÂVideo_DrawPng(ctx, imgProp, 80, 138);
ÂÂÂÂ/* Free image context */
ÂÂÂÂPNGU_ReleaseImageContext(ctx);