Skip to content

Commit

Permalink
Use logger to format string
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Mar 17, 2024
1 parent 3a5bb03 commit 4ad7c7c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/util/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,8 @@ wxBitmap ResourceManager::GetBitmap(const wxString& filePath, const wxBitmapType
wxImage img = Wisteria::GraphItems::Image::LoadFile(filePath);
if (!img.IsOk())
{ return wxNullBitmap; }
wxLogVerbose(
wxString::Format(L"%s extracted from file. Width=%d, Height=%d",
filePath, img.GetWidth(), img.GetHeight()));
wxLogVerbose(L"%s extracted from file. Width=%d, Height=%d",
filePath, img.GetWidth(), img.GetHeight());
return m_imageMap[filePath] = wxBitmap(img);
}
// ...otherwise, load from the resource zip file
Expand All @@ -72,8 +71,8 @@ wxBitmap ResourceManager::GetBitmap(const wxString& filePath, const wxBitmapType
wxBitmap bmp = ExtractBitmap(filePath, bitmapType);
assert(bmp.IsOk() &&
"Failed to load image from resources!");
wxLogVerbose(wxString::Format(L"%s extracted from resource file. Width=%d, Height=%d",
filePath, bmp.GetWidth(), bmp.GetHeight()));
wxLogVerbose(L"%s extracted from resource file. Width=%d, Height=%d",
filePath, bmp.GetWidth(), bmp.GetHeight());
return m_imageMap[filePath] = bmp;
}
}
Expand Down

0 comments on commit 4ad7c7c

Please sign in to comment.