Skip to content

Commit 1f1092f

Browse files
committed
Removed debug messages in 3957707
1 parent 3957707 commit 1f1092f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

arduino-core/src/processing/app/windows/Platform.java

+1-8
Original file line numberDiff line numberDiff line change
@@ -277,20 +277,13 @@ public int getSystemDPI() {
277277

278278
public static int detectSystemDPI() {
279279
try {
280-
int res = ExtUser32.INSTANCE.SetProcessDpiAwareness(ExtUser32.DPI_AWARENESS_SYSTEM_AWARE);
281-
System.out.println("SetProcessDpiAwareness returned " + res);
280+
ExtUser32.INSTANCE.SetProcessDpiAwareness(ExtUser32.DPI_AWARENESS_SYSTEM_AWARE);
282281
} catch (Throwable e) {
283-
System.out.println("SetProcessDpiAwareness failed!");
284282
// Ignore error
285283
}
286284
try {
287-
System.out.println("before any SetThreadDpiAwarenessContext(...) -> dpi " + ExtUser32.INSTANCE.GetDpiForSystem());
288-
ExtUser32.INSTANCE.SetThreadDpiAwarenessContext(ExtUser32.DPI_AWARENESS_CONTEXT_UNAWARE);
289-
System.out.println("SetThreadDpiAwarenessContext(UNAWARE) -> dpi " + ExtUser32.INSTANCE.GetDpiForSystem());
290285
ExtUser32.INSTANCE.SetThreadDpiAwarenessContext(ExtUser32.DPI_AWARENESS_CONTEXT_SYSTEM_AWARE);
291-
System.out.println("SetThreadDpiAwarenessContext(SYSTEM) -> dpi " + ExtUser32.INSTANCE.GetDpiForSystem());
292286
} catch (Throwable e) {
293-
System.out.println("SetThreadDpiAwarenessContext failed!");
294287
// Ignore error (call valid only on Windows 10)
295288
}
296289
try {

0 commit comments

Comments
 (0)