File tree 1 file changed +1
-8
lines changed
arduino-core/src/processing/app/windows
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -277,20 +277,13 @@ public int getSystemDPI() {
277
277
278
278
public static int detectSystemDPI () {
279
279
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 );
282
281
} catch (Throwable e ) {
283
- System .out .println ("SetProcessDpiAwareness failed!" );
284
282
// Ignore error
285
283
}
286
284
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 ());
290
285
ExtUser32 .INSTANCE .SetThreadDpiAwarenessContext (ExtUser32 .DPI_AWARENESS_CONTEXT_SYSTEM_AWARE );
291
- System .out .println ("SetThreadDpiAwarenessContext(SYSTEM) -> dpi " + ExtUser32 .INSTANCE .GetDpiForSystem ());
292
286
} catch (Throwable e ) {
293
- System .out .println ("SetThreadDpiAwarenessContext failed!" );
294
287
// Ignore error (call valid only on Windows 10)
295
288
}
296
289
try {
You can’t perform that action at this time.
0 commit comments