mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-31 00:22:31 +00:00
(Xbox 1) Build fixes
This commit is contained in:
parent
ca44dee735
commit
93f9316a9b
@ -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_X1R5G5B5, 0, &d3d->lpTexture);
|
||||
d3d->d3d_render_device->CreateTexture(512, 512, 1, 0, D3DFMT_LIN_R5G6B5, 0, &d3d->lpTexture);
|
||||
D3DLOCKED_RECT d3dlr;
|
||||
d3d->lpTexture->LockRect(0, &d3dlr, NULL, 0);
|
||||
memset(d3dlr.pBits, 0, 512 * d3dlr.Pitch);
|
||||
@ -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_LIN_A1R5G5B5);
|
||||
d3d->d3dpp.BackBufferFormat = g_settings.video.color_format ? (D3DFORMAT)MAKESRGBFMT(D3DFMT_A8R8G8B8) : (D3DFORMAT)MAKESRGBFMT(D3DFMT_R5G6B5);
|
||||
d3d->d3dpp.FrontBufferFormat = (D3DFORMAT)MAKESRGBFMT(D3DFMT_LE_X8R8G8B8);
|
||||
}
|
||||
else
|
||||
{
|
||||
d3d->d3dpp.BackBufferFormat = g_settings.video.color_format ? D3DFMT_A8R8G8B8 : D3DFMT_LIN_A1R5G5B5;
|
||||
d3d->d3dpp.BackBufferFormat = g_settings.video.color_format ? D3DFMT_A8R8G8B8 : D3DFMT_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_LIN_X1R5G5B5,
|
||||
d3d->d3d_render_device->CreateTexture(512, 512, 1, 0, D3DFMT_R5G6B5,
|
||||
0, &d3d->lpTexture
|
||||
, NULL
|
||||
);
|
||||
|
@ -36,6 +36,21 @@ static inline void RARCH_LOG(const char *msg, ...)
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
static inline void RARCH_LOG_OUTPUT(const char *msg, ...)
|
||||
{
|
||||
char msg_new[1024], buffer[1024];
|
||||
#ifdef IS_SALAMANDER
|
||||
snprintf(msg_new, sizeof(msg_new), "RetroArch Salamander: %s", msg);
|
||||
#else
|
||||
snprintf(msg_new, sizeof(msg_new), "RetroArch: %s", msg);
|
||||
#endif
|
||||
va_list ap;
|
||||
va_start(ap, msg);
|
||||
wvsprintf(buffer, msg_new, ap);
|
||||
OutputDebugStringA(buffer);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
static inline void RARCH_WARN(const char *msg, ...)
|
||||
{
|
||||
char msg_new[1024], buffer[1024];
|
||||
|
@ -98,7 +98,7 @@ rarch_perf_tick_t rarch_get_perf_counter(void)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(_XBOX)
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user