From e87477a75f5bfed4a2227bf72212157bc0ca58b0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 10 Nov 2012 14:32:15 +0100 Subject: [PATCH] (360) Now supports RGB565 --- gfx/context/xdk_ctx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/context/xdk_ctx.c b/gfx/context/xdk_ctx.c index 36f05bd370..77ed60d995 100644 --- a/gfx/context/xdk_ctx.c +++ b/gfx/context/xdk_ctx.c @@ -352,12 +352,12 @@ static bool gfx_ctx_xdk_init(void) if(g_extern.console.screen.gamma_correction) { - d3d->d3dpp.BackBufferFormat = g_settings.video.color_format ? (D3DFORMAT)MAKESRGBFMT(D3DFMT_A8R8G8B8) : (D3DFORMAT)MAKESRGBFMT(D3DFMT_R5G6B5); + d3d->d3dpp.BackBufferFormat = g_settings.video.color_format ? (D3DFORMAT)MAKESRGBFMT(D3DFMT_A8R8G8B8) : (D3DFORMAT)MAKESRGBFMT(D3DFMT_LIN_R5G6B5); d3d->d3dpp.FrontBufferFormat = (D3DFORMAT)MAKESRGBFMT(D3DFMT_LE_X8R8G8B8); } else { - d3d->d3dpp.BackBufferFormat = g_settings.video.color_format ? D3DFMT_A8R8G8B8 : D3DFMT_R5G6B5; + d3d->d3dpp.BackBufferFormat = g_settings.video.color_format ? D3DFMT_A8R8G8B8 : D3DFMT_LIN_R5G6B5; d3d->d3dpp.FrontBufferFormat = D3DFMT_LE_X8R8G8B8; } d3d->d3dpp.MultiSampleQuality = 0; @@ -371,7 +371,7 @@ static bool gfx_ctx_xdk_init(void) d3d->d3d_device->CreateDevice(0, D3DDEVTYPE_HAL, NULL, D3DCREATE_HARDWARE_VERTEXPROCESSING, &d3d->d3dpp, &d3d->d3d_render_device); - d3d->d3d_render_device->CreateTexture(512, 512, 1, 0, D3DFMT_R5G6B5, + d3d->d3d_render_device->CreateTexture(512, 512, 1, 0, D3DFMT_LIN_R5G6B5, 0, &d3d->lpTexture , NULL );