mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Fix DPI scaling in Wine 9.17+
This commit is contained in:
@@ -10,6 +10,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed DPI scaling causing windows contents to become larger than they should
|
||||
be when using **Wine 9.17+** and Wine's font DPI scaling feature.
|
||||
- Fixed a potential segfault when unloading yabridge.
|
||||
|
||||
## [5.1.0] - 2023-12-23
|
||||
|
||||
@@ -88,6 +88,12 @@ int YABRIDGE_EXPORT
|
||||
|
||||
std::cerr << "Initializing " << host_name << std::endl;
|
||||
|
||||
// NOTE: Without this, Wine 9.17+ will try to scale surface bitmaps in the
|
||||
// X11 driver, which results in window client areas being larger than
|
||||
// should be.
|
||||
// https://github.com/robbert-vdh/yabridge/issues/368
|
||||
SetProcessDpiAwarenessContext(DPI_AWARENESS_CONTEXT_SYSTEM_AWARE);
|
||||
|
||||
// NOTE: Some plugins use Microsoft COM, but don't initialize it first and
|
||||
// just pray the host does it for them. Examples of this are
|
||||
// PSPaudioware's InfiniStrip and Shattered Glass Audio Code Red Free.
|
||||
|
||||
Reference in New Issue
Block a user