Fix project tree icons on Windows.
This commit is contained in:
parent
b64a30f44b
commit
7774a43762
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue