mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-13 21:49:42 +00:00
(Xbox 1) Fix texture U/V
This commit is contained in:
parent
1d9ea0297e
commit
9f7d0d59c5
@ -84,7 +84,7 @@ int font_renderer_create_default(const void **data, void **handle,
|
||||
|
||||
#ifdef HAVE_D3D
|
||||
static const font_renderer_t *d3d_font_backends[] = {
|
||||
#elif defined(_XBOX360)
|
||||
#if defined(_XBOX360)
|
||||
&d3d_xbox360_font,
|
||||
#elif defined(_WIN32) && defined(HAVE_D3DX)
|
||||
&d3d_win32_font,
|
||||
|
@ -169,6 +169,17 @@ static void menu_display_d3d_draw(void *data)
|
||||
pv[i].z = 0.5f;
|
||||
pv[i].u = *tex_coord++;
|
||||
pv[i].v = *tex_coord++;
|
||||
#ifdef _XBOX1
|
||||
{
|
||||
D3DSURFACE_DESC desc;
|
||||
if (d3d_texture_get_level_desc((LPDIRECT3DTEXTURE)
|
||||
draw->texture, 0, &desc))
|
||||
{
|
||||
pv[i].u *= desc.Width;
|
||||
pv[i].v *= desc.Height;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
pv[i].color =
|
||||
D3DCOLOR_ARGB(
|
||||
|
Loading…
x
Reference in New Issue
Block a user