Skip to content

Commit

Permalink
Removed debug messages in 3957707
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Nov 21, 2016
1 parent 3957707 commit 1f1092f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions arduino-core/src/processing/app/windows/Platform.java
Original file line number Diff line number Diff line change
Expand Up @@ -277,20 +277,13 @@ public int getSystemDPI() {

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 {
Expand Down

0 comments on commit 1f1092f

Please sign in to comment.