Decompile 2 functions in Source/Render/DX7/DeviceOwnerDX7.cpp

Batch #15583 by Yommy: 2 byte-identical, 0 confirmed by peer review.

- fn_01897 DeviceOwnerDX7::Close: byte-identical
- fn_01899 ?SelectDepthFormat@?A0x0c6bb5f1@@YGJPAU_DDPIXELFORMAT@@PAX@Z: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-10 07:13:40 +00:00
commit b25d8c162f

View file

@ -57,7 +57,11 @@ namespace {
}
*selected = *candidate;
return candidate->dwZBufferBitDepth < 32 ? D3DENUMRET_OK : D3DENUMRET_CANCEL;
if (candidate->dwZBufferBitDepth >= 32) {
return D3DENUMRET_CANCEL;
}
return D3DENUMRET_OK;
}
// INLINED
@ -309,6 +313,7 @@ HRESULT DeviceOwnerDX7::CreateDevice(GUID* drawIdentity, const GUID* renderIdent
// OFFSET: 0x0054A7D0
// FUNCTION: fn_01897
HRESULT DeviceOwnerDX7::Close() {
ULONG drawReferences = 0;
ULONG deviceReferences = 0;
if (this->device) {
@ -353,8 +358,6 @@ HRESULT DeviceOwnerDX7::Close() {
this->captureSurface = nullptr;
}
ULONG drawReferences = 0;
if (this->draw) {
this->draw->SetCooperativeLevel(this->window, DDSCL_NORMAL);
drawReferences = this->draw->Release();