Skip to content

Commit

Permalink
PatternWin32ManualTest: suppress Discouraged access warning
Browse files Browse the repository at this point in the history
The type 'DPIUtil' is not API (restriction on required project
'org.eclipse.swt.win32.win32.x86_64')
  • Loading branch information
EcljpseB0T committed Nov 26, 2024
1 parent 266cc26 commit 6662865
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class PatternWin32ManualTest {
private static Display display = Display.getDefault();

public static void main (String [] args) {
@SuppressWarnings("restriction")
int zoom = DPIUtil.getDeviceZoom();
int scalingFactor = 3;
int scaledZoom = zoom * scalingFactor;
Expand Down

0 comments on commit 6662865

Please sign in to comment.