Fixed VdQueryVideoFlags.

This commit is contained in:
gibbed 2015-05-12 22:59:21 -05:00
parent 95080cefa2
commit c00ded9fbc
1 changed files with 11 additions and 1 deletions

View File

@ -78,10 +78,20 @@ SHIM_CALL VdGetCurrentDisplayInformation_shim(PPCContext* ppc_state,
SHIM_SET_MEM_32(ptr + 84, 1280); // display width
}
void xeVdQueryVideoMode(X_VIDEO_MODE* video_mode);
SHIM_CALL VdQueryVideoFlags_shim(PPCContext* ppc_state, KernelState* state) {
XELOGD("VdQueryVideoFlags()");
SHIM_SET_RETURN_64(0x00000006);
X_VIDEO_MODE mode;
xeVdQueryVideoMode(&mode);
uint32_t flags = 0;
flags |= mode.is_widescreen ? 1 : 0;
flags |= mode.display_width >= 1024 ? 2 : 0;
flags |= mode.display_width >= 1920 ? 4 : 0;
SHIM_SET_RETURN_32(flags);
}
void xeVdQueryVideoMode(X_VIDEO_MODE* video_mode) {