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:
parent
77cc71a529
commit
647fd3e6cd
1 changed files with 6 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue