Decompile 2 functions in Source/Render/Text/TextContext.cpp, Source/Render/DX7/DirectDrawEnumeration.cpp
Batch #17919 by eAthena: 0 byte-identical, 2 confirmed by peer review. - fn_01966 TextContext::SetFont: logic confirmed by peer review - fn_09778 DirectDrawEnumeration::Device: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Yommy, bibinir 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
ab1a83c937
commit
5daa53e700
2 changed files with 4 additions and 6 deletions
|
|
@ -160,10 +160,8 @@ HRESULT CALLBACK DirectDrawEnumeration::Device(char*, char* name, D3DDEVICEDESC7
|
|||
}
|
||||
|
||||
for (unsigned index = 0; index < record.modeCount; ++index) {
|
||||
const auto& mode = record.modes[index];
|
||||
|
||||
if (mode.dwWidth == 1024 && mode.dwHeight == 768 && mode.ddpfPixelFormat.dwRGBBitCount == 16) {
|
||||
record.selectedMode = mode;
|
||||
if (record.modes[index].dwWidth == 1024 && record.modes[index].dwHeight == 768 && record.modes[index].ddpfPixelFormat.dwRGBBitCount == 16) {
|
||||
record.selectedMode = record.modes[index];
|
||||
record.selectedIndex = index;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ void TextContext::SetFont(int family, int height, unsigned char bold, unsigned c
|
|||
family = 9;
|
||||
} else {
|
||||
family = 1;
|
||||
if (g_serverLanguage && g_serverLanguage->alternateLanguage == 31) {
|
||||
if (g_serverLanguage && 31 == g_serverLanguage->alternateLanguage) {
|
||||
family = 6;
|
||||
}
|
||||
}
|
||||
|
|
@ -101,7 +101,7 @@ void TextContext::SetFont(int family, int height, unsigned char bold, unsigned c
|
|||
if (g_serviceType == 12) {
|
||||
height = (height - 2);
|
||||
} else if (g_serviceType == 18) {
|
||||
if (g_serverLanguage->alternateLanguage == 31) {
|
||||
if (31 == g_serverLanguage->alternateLanguage) {
|
||||
family = 6;
|
||||
} else {
|
||||
height = (height - 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue