mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-01 19:00:34 +02:00
XBOX fix inventory background, add MSAA 4x, add title and save icons
This commit is contained in:
@@ -710,8 +710,8 @@ namespace GAPI {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setVSync(bool enable) {
|
void setVSync(bool enable) {
|
||||||
d3dpp.FullScreen_PresentationInterval = enable ? D3DPRESENT_INTERVAL_ONE : D3DPRESENT_INTERVAL_IMMEDIATE;
|
// d3dpp.FullScreen_PresentationInterval = enable ? D3DPRESENT_INTERVAL_ONE : D3DPRESENT_INTERVAL_IMMEDIATE;
|
||||||
GAPI::resetDevice();
|
// GAPI::resetDevice();
|
||||||
}
|
}
|
||||||
|
|
||||||
void waitVBlank() {}
|
void waitVBlank() {}
|
||||||
|
@@ -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
|
#ifdef EARLY_CLEAR
|
||||||
if (view == 0 && eye <= 0) {
|
if (view == 0 && eye <= 0) {
|
||||||
Core::setTarget(NULL, NULL, RT_CLEAR_COLOR | RT_CLEAR_DEPTH | RT_STORE_COLOR | RT_STORE_DEPTH);
|
Core::setTarget(NULL, NULL, RT_CLEAR_COLOR | RT_CLEAR_DEPTH | RT_STORE_COLOR | RT_STORE_DEPTH);
|
||||||
|
@@ -59,6 +59,7 @@
|
|||||||
TitleID="0x14021968"
|
TitleID="0x14021968"
|
||||||
TitleName="OpenLara"
|
TitleName="OpenLara"
|
||||||
TitleImage="titleimage.xbx"
|
TitleImage="titleimage.xbx"
|
||||||
|
SaveGameImage="saveimage.xbx"
|
||||||
XBEVersion="4096"/>
|
XBEVersion="4096"/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
@@ -113,6 +114,8 @@
|
|||||||
IncludeDebugInfo="TRUE"
|
IncludeDebugInfo="TRUE"
|
||||||
NoLibWarn="TRUE"
|
NoLibWarn="TRUE"
|
||||||
TitleName="OpenLara"
|
TitleName="OpenLara"
|
||||||
|
TitleImage="titleimage.xbx"
|
||||||
|
SaveGameImage="saveimage.xbx"
|
||||||
XBEVersion="4096"/>
|
XBEVersion="4096"/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
@@ -168,6 +171,8 @@
|
|||||||
IncludeDebugInfo="TRUE"
|
IncludeDebugInfo="TRUE"
|
||||||
NoLibWarn="TRUE"
|
NoLibWarn="TRUE"
|
||||||
TitleName="OpenLara"
|
TitleName="OpenLara"
|
||||||
|
TitleImage="titleimage.xbx"
|
||||||
|
SaveGameImage="saveimage.xbx"
|
||||||
XBEVersion="4096"/>
|
XBEVersion="4096"/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
@@ -220,6 +225,8 @@
|
|||||||
FileName="$(TargetDir)default.xbe"
|
FileName="$(TargetDir)default.xbe"
|
||||||
StackSize="65536"
|
StackSize="65536"
|
||||||
TitleName="OpenLara"
|
TitleName="OpenLara"
|
||||||
|
TitleImage="titleimage.xbx"
|
||||||
|
SaveGameImage="saveimage.xbx"
|
||||||
XBEVersion="4096"/>
|
XBEVersion="4096"/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
<Configuration
|
<Configuration
|
||||||
@@ -273,6 +280,8 @@
|
|||||||
FileName="$(TargetDir)default.xbe"
|
FileName="$(TargetDir)default.xbe"
|
||||||
StackSize="65536"
|
StackSize="65536"
|
||||||
TitleName="OpenLara"
|
TitleName="OpenLara"
|
||||||
|
TitleImage="titleimage.xbx"
|
||||||
|
SaveGameImage="saveimage.xbx"
|
||||||
XBEVersion="4096"/>
|
XBEVersion="4096"/>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
</Configurations>
|
</Configurations>
|
||||||
|
@@ -263,7 +263,8 @@ HRESULT ContextCreate() {
|
|||||||
d3dpp.EnableAutoDepthStencil = TRUE;
|
d3dpp.EnableAutoDepthStencil = TRUE;
|
||||||
d3dpp.AutoDepthStencilFormat = D3DFMT_D24S8;
|
d3dpp.AutoDepthStencilFormat = D3DFMT_D24S8;
|
||||||
d3dpp.SwapEffect = D3DSWAPEFFECT_DISCARD;
|
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)))
|
if (FAILED(D3D->CreateDevice(0, D3DDEVTYPE_HAL, NULL, D3DCREATE_HARDWARE_VERTEXPROCESSING, &d3dpp, &device)))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
BIN
src/platform/xbox/saveimage.xbx
Normal file
BIN
src/platform/xbox/saveimage.xbx
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user