1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-01-17 21:09:00 +01:00

XBOX fix inventory background, add MSAA 4x, add title and save icons

This commit is contained in:
XProger 2020-11-05 06:23:19 +04:00
parent af08ce9cdc
commit 9a80717f35
7 changed files with 28 additions and 12 deletions

View File

@ -710,8 +710,8 @@ namespace GAPI {
}
void setVSync(bool enable) {
d3dpp.FullScreen_PresentationInterval = enable ? D3DPRESENT_INTERVAL_ONE : D3DPRESENT_INTERVAL_IMMEDIATE;
GAPI::resetDevice();
// d3dpp.FullScreen_PresentationInterval = enable ? D3DPRESENT_INTERVAL_ONE : D3DPRESENT_INTERVAL_IMMEDIATE;
// GAPI::resetDevice();
}
void waitVBlank() {}

View File

@ -1460,9 +1460,9 @@ struct Inventory {
}
void prepareBackground() {
#ifdef FFP
return;
#endif
#ifdef FFP
return;
#endif
if (Core::settings.detail.stereo == Core::Settings::STEREO_VR)
return;
@ -1471,9 +1471,9 @@ struct Inventory {
return;
#endif
#ifdef _OS_3DS
GAPI::rotate90 = false;
#endif
#ifdef _OS_3DS
GAPI::rotate90 = false;
#endif
game->renderGame(false, true);
@ -1494,9 +1494,9 @@ struct Inventory {
swap(background[view], background[2]);
}
#ifdef _OS_3DS
GAPI::rotate90 = true;
#endif
#ifdef _OS_3DS
GAPI::rotate90 = true;
#endif
Core::setDepthTest(true);
}

View File

@ -3213,6 +3213,12 @@ struct Level : IGame {
}
}
if (Core::defaultTarget) {
Core::viewportDef = short4(0, 0, Core::defaultTarget->origWidth, Core::defaultTarget->origHeight);
} else {
Core::viewportDef = short4(0, 0, Core::width, Core::height);
}
#ifdef EARLY_CLEAR
if (view == 0 && eye <= 0) {
Core::setTarget(NULL, NULL, RT_CLEAR_COLOR | RT_CLEAR_DEPTH | RT_STORE_COLOR | RT_STORE_DEPTH);

View File

@ -59,6 +59,7 @@
TitleID="0x14021968"
TitleName="OpenLara"
TitleImage="titleimage.xbx"
SaveGameImage="saveimage.xbx"
XBEVersion="4096"/>
</Configuration>
<Configuration
@ -113,6 +114,8 @@
IncludeDebugInfo="TRUE"
NoLibWarn="TRUE"
TitleName="OpenLara"
TitleImage="titleimage.xbx"
SaveGameImage="saveimage.xbx"
XBEVersion="4096"/>
</Configuration>
<Configuration
@ -168,6 +171,8 @@
IncludeDebugInfo="TRUE"
NoLibWarn="TRUE"
TitleName="OpenLara"
TitleImage="titleimage.xbx"
SaveGameImage="saveimage.xbx"
XBEVersion="4096"/>
</Configuration>
<Configuration
@ -220,6 +225,8 @@
FileName="$(TargetDir)default.xbe"
StackSize="65536"
TitleName="OpenLara"
TitleImage="titleimage.xbx"
SaveGameImage="saveimage.xbx"
XBEVersion="4096"/>
</Configuration>
<Configuration
@ -273,6 +280,8 @@
FileName="$(TargetDir)default.xbe"
StackSize="65536"
TitleName="OpenLara"
TitleImage="titleimage.xbx"
SaveGameImage="saveimage.xbx"
XBEVersion="4096"/>
</Configuration>
</Configurations>

View File

@ -263,7 +263,8 @@ HRESULT ContextCreate() {
d3dpp.EnableAutoDepthStencil = TRUE;
d3dpp.AutoDepthStencilFormat = D3DFMT_D24S8;
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
d3dpp.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_ONE_OR_IMMEDIATE;
d3dpp.MultiSampleType = D3DMULTISAMPLE_4_SAMPLES_MULTISAMPLE_GAUSSIAN;
d3dpp.FullScreen_PresentationInterval = D3DPRESENT_INTERVAL_ONE;
if (FAILED(D3D->CreateDevice(0, D3DDEVTYPE_HAL, NULL, D3DCREATE_HARDWARE_VERTEXPROCESSING, &d3dpp, &device)))
return E_FAIL;

Binary file not shown.

Binary file not shown.