mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-20 14:54:31 +01:00
Removed debug messages in 39577072
This commit is contained in:
parent
3957707218
commit
1f1092fb3a
@ -277,20 +277,13 @@ public class Platform extends processing.app.Platform {
|
||||
|
||||
public static int detectSystemDPI() {
|
||||
try {
|
||||
int res = ExtUser32.INSTANCE.SetProcessDpiAwareness(ExtUser32.DPI_AWARENESS_SYSTEM_AWARE);
|
||||
System.out.println("SetProcessDpiAwareness returned " + res);
|
||||
ExtUser32.INSTANCE.SetProcessDpiAwareness(ExtUser32.DPI_AWARENESS_SYSTEM_AWARE);
|
||||
} catch (Throwable e) {
|
||||
System.out.println("SetProcessDpiAwareness failed!");
|
||||
// Ignore error
|
||||
}
|
||||
try {
|
||||
System.out.println("before any SetThreadDpiAwarenessContext(...) -> dpi " + ExtUser32.INSTANCE.GetDpiForSystem());
|
||||
ExtUser32.INSTANCE.SetThreadDpiAwarenessContext(ExtUser32.DPI_AWARENESS_CONTEXT_UNAWARE);
|
||||
System.out.println("SetThreadDpiAwarenessContext(UNAWARE) -> dpi " + ExtUser32.INSTANCE.GetDpiForSystem());
|
||||
ExtUser32.INSTANCE.SetThreadDpiAwarenessContext(ExtUser32.DPI_AWARENESS_CONTEXT_SYSTEM_AWARE);
|
||||
System.out.println("SetThreadDpiAwarenessContext(SYSTEM) -> dpi " + ExtUser32.INSTANCE.GetDpiForSystem());
|
||||
} catch (Throwable e) {
|
||||
System.out.println("SetThreadDpiAwarenessContext failed!");
|
||||
// Ignore error (call valid only on Windows 10)
|
||||
}
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user