Batch #18338 by ragnarok-clanker: no function's compiled code changes; checked with 433 compiled unit(s), including every includer of Source/Client/Application/ApplicationWindow.h, Source/Client/Mode/CGameMode.h, Source/Client/Session/Session.h, Source/Contents/Configuration/ServiceOptions.h, Source/Contents/Map/MapSkyMgr.h, Source/Contents/Messenger/ClientMessenger.h, Source/Contents/SignBoard/SignBoard.h, Source/Contents/Skills/ClientSkills.h, Source/Contents/Sound/SoundConfiguration.h, Source/Render/DX7/RenderSystemDX7.h, Source/Render/Device/DisplayMode.h, Source/Resource/Json/JsonCppLoader.h, Source/Security/NProtectGameGuardMgr.h, Source/UI/Cooldowns/CooldownOwner.h, Source/UI/Enchant/EnchantUI.h, Source/UI/Exchange/UIExchangeUI.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/ProbabilityTable/UIProbabilityTable.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/RuneSystem/UIRuneSystemWnd.h, Source/UI/SelectPackageItemBox/SelectPackageItemBox.h, Source/UI/SkillDelayInfo/SkillDelayInfo.h, Source/UI/Text/TextWrapping.h, Source/Contents/Actors/Resources/BodyResources.h, Source/Resource/Json/JsonCppLoaderExternal.h, Source/Resource/Json/JsonCppLoaderParsing.h, Source/Security/NProtectGameMon.h.
33 lines
939 B
C++
33 lines
939 B
C++
#ifndef RAGNAROK_SOURCE_RENDER_DEVICE_DISPLAYMODE_H
|
|
#define RAGNAROK_SOURCE_RENDER_DEVICE_DISPLAYMODE_H
|
|
|
|
#include <cstddef>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <windows.h>
|
|
|
|
struct DisplayMode {
|
|
/* 0000 */ unsigned width = 0;
|
|
/* 0004 */ unsigned height = 0;
|
|
/* 0008 */ unsigned bitsPerPixel = 0;
|
|
/* 000C */ std::string description;
|
|
|
|
bool Matches(const DisplayMode& other) const;
|
|
};
|
|
|
|
std::vector<DisplayMode> EnumerateDisplayModes(int backend, unsigned deviceIndex);
|
|
|
|
std::vector<DisplayMode> EnumerateDisplayModesDX7(unsigned deviceIndex);
|
|
|
|
std::vector<DisplayMode> EnumerateDisplayModesDX9(UINT adapter);
|
|
|
|
LSTATUS SaveDisplayDeviceSettings();
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(DisplayMode) == 36);
|
|
static_assert(offsetof(DisplayMode, height) == 0x0004);
|
|
static_assert(offsetof(DisplayMode, bitsPerPixel) == 0x0008);
|
|
static_assert(offsetof(DisplayMode, description) == 0x000C);
|
|
#endif
|
|
|
|
#endif
|