From 6d6c170f09aa729a73b9840329b2b4a6484cc8f8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 10 Nov 2012 16:17:01 +0100 Subject: [PATCH] (Xbox 1) Set up for 32bit color now - just need a more elegant way of automatically switching on 32bit/16bit color during init instead of g_settings.video.color_format --- gfx/context/xdk_ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/context/xdk_ctx.c b/gfx/context/xdk_ctx.c index 6f6603e254..25d54c2dba 100644 --- a/gfx/context/xdk_ctx.c +++ b/gfx/context/xdk_ctx.c @@ -302,7 +302,7 @@ static bool gfx_ctx_xdk_init(void) d3d->d3d_render_device->SetTransform(D3DTS_WORLD, &mat); d3d->d3d_render_device->SetTransform(D3DTS_VIEW, &mat); - d3d->d3d_render_device->CreateTexture(512, 512, 1, 0, D3DFMT_LIN_R5G6B5, 0, &d3d->lpTexture); + d3d->d3d_render_device->CreateTexture(512, 512, 1, 0, g_settings.video.color_format ? D3DFMT_LIN_A8R8G8B8 : D3DFMT_LIN_R5G6B5, 0, &d3d->lpTexture); D3DLOCKED_RECT d3dlr; d3d->lpTexture->LockRect(0, &d3dlr, NULL, 0); memset(d3dlr.pBits, 0, 512 * d3dlr.Pitch);