Ensure glow bitmaps are loaded. Called lazily from hooks that need them.
| 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 | { |
no test coverage detected