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 authored and jukzi committed Dec 12, 2024
1 parent 2a61cb2 commit 9169683
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 9169683

Please sign in to comment.