Release Get Resolution

G

Gentle

Guest
Hello Everyone!


I thought this would be very useful for people making menu so it will work on 1080p/720p etc so everything links up right and looks nice on screen if you are bother to make it work on all resolutions, there is alot more stuff you can find inside sysutil_sysparam.h to do with your screen stuff be sure to check it out!

Anyways here ya go, hopefully it help someone out.
1YfvAhe.png


Code:
bool IsResolution1080or720()
{
    CellVideoOutConfiguration config;
    cellVideoOutGetConfiguration(CELL_VIDEO_OUT_PRIMARY, &config, NULL);
    if (config.resolutionId == CELL_VIDEO_OUT_RESOLUTION_1080 || CELL_VIDEO_OUT_RESOLUTION_720)
        return true;
    else
        return false;
}

Feel free to edit this to you're liking!
Credit: SC58 - Releasing This
 
Top