MCPcopy Create free account
hub / github.com/ALTaleX531/OpenGlass / EnsureGlowBitmapsLoaded

Function EnsureGlowBitmapsLoaded

OpenGlass/ButtonGlowHandler.cpp:224–241  ·  view source on GitHub ↗

Ensure glow bitmaps are loaded. Called lazily from hooks that need them.

Source from the content-addressed store, hash-verified

222
223 // Ensure glow bitmaps are loaded. Called lazily from hooks that need them.
224 void EnsureGlowBitmapsLoaded()
225 {
226 if (g_glowMinMax || g_glowClose)
227 return;
228
229 void* hTheme = g_glowThemeHandle;
230 if (!hTheme && uDWM::CDesktopManager::s_pDesktopManagerInstance)
231 {
232 auto* dm = *uDWM::CDesktopManager::s_pDesktopManagerInstance;
233 if (dm)
234 hTheme = *reinterpret_cast<void**>(reinterpret_cast<uintptr_t>(dm) + 69 * 8);
235 }
236 if (!hTheme)
237 return;
238
239 g_glowThemeHandle = static_cast<HTHEME>(hTheme);
240 Win11_LoadGlowBitmaps(hTheme);
241 }
242
243 HRESULT WINAPI CTopLevelWindow_CreateGlyphsFromAtlas_Hook_Win11(HTHEME hTheme)
244 {

Calls 1

Win11_LoadGlowBitmapsFunction · 0.85

Tested by

no test coverage detected