mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Fix image size in Layer selector in Properties panel on hidpi.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/13105 (cherry picked from commit 8b24496b793a1fe545c2a07eaa4d870a6cd7f421)
This commit is contained in:
parent
062a03c3aa
commit
689441ebab
@ -605,8 +605,12 @@ wxValidator* PGPROPERTY_ANGLE::DoGetValidator() const
|
|||||||
|
|
||||||
wxSize PGPROPERTY_COLORENUM::OnMeasureImage( int aItem ) const
|
wxSize PGPROPERTY_COLORENUM::OnMeasureImage( int aItem ) const
|
||||||
{
|
{
|
||||||
// TODO(JE) calculate size from window metrics?
|
wxSize size( 16, -1 );
|
||||||
return wxSize( 16, 12 );
|
|
||||||
|
if( wxPropertyGrid* pg = GetGrid() )
|
||||||
|
size = pg->FromDIP( size );
|
||||||
|
|
||||||
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user