File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
arduino-core/src/processing/app/windows Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments