mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
[GUI] Improve multi-monitor & highDpi support
- The Export Options window has been reorganized - Improved multi-monitor support (.net builds) - Disabled dpi awareness for net472 build, via app.manifest, for better compatibility (with Wine as well)
This commit is contained in:
@@ -152,5 +152,16 @@ namespace AssetStudioGUI
|
||||
SetFromFbxSettings(new Fbx.Settings());
|
||||
uvIndicesCheckedListBox_SelectedIndexChanged(sender, e);
|
||||
}
|
||||
|
||||
//highDpi workaround (net472/.net-win7)
|
||||
private void ExportOptions_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (Font.Height == 16)
|
||||
return;
|
||||
|
||||
var k = Font.Height / 16.0f;
|
||||
var listHeight = (int)(uvTypesListBox.ItemHeight * 6 * k);
|
||||
uvTypesListBox.Height = uvIndicesCheckedListBox.Height = listHeight;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user