Merge pull request #1325 from Swizzy/master

Some XDK360 fixes
This commit is contained in:
Twinaphex 2015-01-08 14:12:04 +01:00
commit 9895835f04
4 changed files with 16 additions and 7 deletions

View File

@ -191,6 +191,10 @@ static bool d3d_init_base(void *data, const video_info_t *info)
return false;
}
#ifdef _XBOX360
d3d->cur_mon_id=0;
#endif
if (FAILED(d3d->d3d_err = d3d->g_pD3D->CreateDevice(
d3d->cur_mon_id,
D3DDEVTYPE_HAL,

View File

@ -345,6 +345,7 @@ void d3d_texture_blit(void *data, void *renderchain_data,
memcpy(out, in, width * d3d->pixel_size);
}
#endif
D3DTexture_UnlockRect(tex, 0);
#else
renderchain_t *chain = (renderchain_t*)renderchain_data;

View File

@ -9,6 +9,10 @@ static void renderchain_clear(void *data)
{
d3d_video_t *d3d = (d3d_video_t*)data;
#ifdef _XBOX360
for (int i = 0; i < 4; i++)
d3d_set_stream_source(d3d->dev, i, NULL, 0, 0);
#endif
d3d_texture_free(d3d->tex);
d3d_vertex_buffer_free(d3d->vertex_buf);

View File

@ -16331,10 +16331,10 @@
<XuiText>
<Properties>
<Id>LeftText</Id>
<Width>174.697693</Width>
<Height>26.651360</Height>
<Width>268.000000</Width>
<Height>26.000000</Height>
<Position>9.000000,4.000000,0.000000</Position>
<Anchor>5</Anchor>
<Anchor>65</Anchor>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
</Properties>
@ -16342,10 +16342,10 @@
<XuiText>
<Properties>
<Id>RightText</Id>
<Width>130.509796</Width>
<Height>26.883928</Height>
<Position>147.517395,4.000000,0.000000</Position>
<Anchor>4</Anchor>
<Width>268.000000</Width>
<Height>26.000000</Height>
<Position>9.000000,4.000000,0.000000</Position>
<Anchor>68</Anchor>
<TextColor>0xff0f0f0f</TextColor>
<DropShadowColor>0x800f0f0f</DropShadowColor>
<TextStyle>528</TextStyle>