MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / GetImage

Method GetImage

src/windows/AvatarCache.cpp:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215HImage* AvatarCache::GetImage(const std::string& resource, bool& hasAlphaOut)
216{
217 hasAlphaOut = false;
218 HImage* him = GetImageSpecial(resource, hasAlphaOut);
219
220 if (him == HIMAGE_ERROR || him == HIMAGE_LOADING || !him)
221 him = GetDefaultImage();
222
223 return him;
224}
225
226void AvatarCache::WipeBitmaps()
227{

Callers

nothing calls this directly

Calls 1

GetDefaultImageFunction · 0.85

Tested by

no test coverage detected