Update MSVC solutions - 360 buildfix

This commit is contained in:
twinaphex 2015-04-12 19:02:01 +02:00
parent 7c44f3e33e
commit 81cd5df961
4 changed files with 8 additions and 3 deletions

View File

@ -167,8 +167,7 @@ void d3d_make_d3dpp(void *data,
unsigned width = 0; unsigned width = 0;
unsigned height = 0; unsigned height = 0;
if (d3d->ctx_driver && d3d->ctx_driver->get_video_size) gfx_ctx_get_video_size(d3d, &width, &height);
d3d->ctx_driver->get_video_size(d3d, &width, &height);
d3d->screen_width = width; d3d->screen_width = width;
d3d->screen_height = height; d3d->screen_height = height;

View File

@ -386,10 +386,12 @@ void d3d_enable_alpha_blend_texture_func(void *data)
if (!dev) if (!dev)
return; return;
#ifndef _XBOX360
/* Also blend the texture with the set alpha value. */ /* Also blend the texture with the set alpha value. */
dev->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE); dev->SetTextureStageState(0, D3DTSS_ALPHAOP, D3DTOP_MODULATE);
dev->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_DIFFUSE); dev->SetTextureStageState(0, D3DTSS_ALPHAARG1, D3DTA_DIFFUSE);
dev->SetTextureStageState(0, D3DTSS_ALPHAARG2, D3DTA_TEXTURE); dev->SetTextureStageState(0, D3DTSS_ALPHAARG2, D3DTA_TEXTURE);
#endif
} }
void d3d_frame_postprocess(void *data) void d3d_frame_postprocess(void *data)

View File

@ -189,6 +189,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="..\..\griffin\griffin.c" /> <ClCompile Include="..\..\griffin\griffin.c" />
<ClCompile Include="..\..\griffin\griffin_cpp.cpp" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">

View File

@ -12,5 +12,8 @@
<ClCompile Include="..\..\griffin\griffin.c"> <ClCompile Include="..\..\griffin\griffin.c">
<Filter>griffin</Filter> <Filter>griffin</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="..\..\griffin\griffin_cpp.cpp">
<Filter>griffin</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
</Project> </Project>