Decompile fn_01913 (DeviceOwnerDX9::CheckState)

Batch #15821 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_01913 DeviceOwnerDX9::CheckState: logic confirmed by peer review

Peer-reviewed-by: eAthena, Tanke
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-10 11:12:21 +00:00
commit 647fd3e6cd

View file

@ -38,13 +38,12 @@ __declspec(noinline) HRESULT DeviceOwnerDX9::CheckState() {
}
result = this->device->ResetEx(&this->presentation, this->presentation.Windowed == 1 ? nullptr : &this->displayMode);
} else if (FAILED(result) && lastReported != result) {
const std::string message = std::format("{} : {}", Direct3DErrorName(result), Direct3DErrorDescription(result));
ShowErrorDialog(message.c_str(), 0);
lastReported = result;
this->lastPresent = result;
return result;
} else if (FAILED(result)) {
if (lastReported != result) {
const std::string message = std::format("{} : {}", Direct3DErrorName(result), Direct3DErrorDescription(result));
ShowErrorDialog(message.c_str(), 0);
lastReported = result;
}
}
if (result == D3D_OK) {