MCPcopy Create free account
hub / github.com/OpenKneeboard/OpenKneeboard / GetSystemColor

Function GetSystemColor

src/lib/GetSystemColor.cpp:12–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace OpenKneeboard {
11
12D2D1_COLOR_F GetSystemColor(int index) {
13 auto color = ::GetSysColor(index);
14 return {
15 GetRValue(color) / 255.0f,
16 GetGValue(color) / 255.0f,
17 GetBValue(color) / 255.0f,
18 1.0f,
19 };
20}
21
22}// namespace OpenKneeboard

Callers 1

TestViewerWindowMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestViewerWindowMethod · 0.68