rodecomp/Source/Render/Device/DisplayMode.h
ragnarok-clanker e9eb7d7001 Decompile 7 functions in Source/UI/GameSettings/GameSettingsUI.cpp, Source/UI/GameSettings/GameSettingsUI.h, ...
Batch #16882 by eAthena: 7 byte-identical, 0 confirmed by peer review.

- fn_15974 GameSettingsUI::CUIGroupRodexSpam::Apply: byte-identical
- fn_15952 GameSettingsUI::CUIGroupGraphics::BindAdapterItem: byte-identical
- fn_15954 GameSettingsUI::CUIGroupGraphics::BindModeItem: byte-identical
- fn_15956 GameSettingsUI::CUIGroupGraphicsAPI::BindItem: byte-identical
- fn_15958 GameSettingsUI::CUIGroupSkin::BindItem: byte-identical
- fn_16014 GameSettingsUI::CUIListPage::LoadOptions: byte-identical
- fn_16007 GameSettingsUI::CUIGroupRodexSpam::OnSelect: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-11 10:44:54 +00:00

31 lines
901 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);
#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