Fix project tree icons on Windows.

This commit is contained in:
Alex Shvartzkop 2024-05-26 13:54:09 +03:00
parent b64a30f44b
commit 7774a43762
1 changed files with 4 additions and 1 deletions

View File

@ -131,7 +131,10 @@ void PROJECT_TREE::LoadIcons()
else else
physSize = 24; physSize = 24;
double bmpsf = physSize / logicSize; logicSize = std::min( logicSize, physSize );
int bmpsf = std::max( 1, physSize / logicSize );
logicSize = physSize / bmpsf;
auto toBitmap = [&]( BITMAPS aBmps ) auto toBitmap = [&]( BITMAPS aBmps )
{ {