Skip to content

Commit

Permalink
[O1L] cellVideoOut: X8B8G8R8 fix
Browse files Browse the repository at this point in the history
O1L's fix for cellVideoOut.
  • Loading branch information
AniLeo authored and Nekotekina committed Feb 2, 2017
1 parent 9eba0ac commit 9916f0e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rpcs3/Emu/Cell/Modules/cellVideoOut.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ error_code cellVideoOutConfigure(u32 videoOut, vm::ptr<CellVideoOutConfiguration
{ {
case CELL_VIDEO_OUT_PRIMARY: case CELL_VIDEO_OUT_PRIMARY:
if (config->resolutionId != g_cfg_video_out_resolution.get() if (config->resolutionId != g_cfg_video_out_resolution.get()
|| config->format != CELL_VIDEO_OUT_BUFFER_COLOR_FORMAT_X8R8G8B8 || (config->format != CELL_VIDEO_OUT_BUFFER_COLOR_FORMAT_X8R8G8B8 &&
config->format != CELL_VIDEO_OUT_BUFFER_COLOR_FORMAT_X8B8G8R8 &&
config->format != CELL_VIDEO_OUT_BUFFER_COLOR_FORMAT_R16G16B16X16_FLOAT)
|| (config->aspect != CELL_VIDEO_OUT_ASPECT_AUTO && config->aspect != g_cfg_video_out_aspect_ratio.get())) || (config->aspect != CELL_VIDEO_OUT_ASPECT_AUTO && config->aspect != g_cfg_video_out_aspect_ratio.get()))
{ {
return CELL_VIDEO_OUT_ERROR_ILLEGAL_CONFIGURATION; return CELL_VIDEO_OUT_ERROR_ILLEGAL_CONFIGURATION;
Expand Down

0 comments on commit 9916f0e

Please sign in to comment.