Skip to content

Replace DPIUtil::get(Native)DeviceZoom() calls for all the snippets and tests #195

@ShahzaibIbrahim

Description

@ShahzaibIbrahim

Following are the places where getDeviceZoom is called. We need to figure out whether and how to replace these calls. As per my findings, the tests always use 100 as the device zoom.

org.eclipse.swt.graphics.GCWin32Tests.drawnElementsShouldScaleUpToTheRightZoomLevel()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_GC.executeWithNonDefaultDeviceZoom(Runnable)
org.eclipse.swt.snippets.Snippet373.main(String[])
org.eclipse.swt.tests.manual.Issue0445_HiDPISmoothScaling.main(String[])
org.eclipse.swt.widgets.PatternWin32ManualTest.main(String[])
org.eclipse.swt.tests.junit.DPIUtilTests.scaleDownFloatArray()
org.eclipse.swt.tests.junit.DPIUtilTests.scaleDownInteger()
org.eclipse.swt.tests.junit.DPIUtilTests.scaleDownPoint()
org.eclipse.swt.tests.junit.DPIUtilTests.scaleDownRectangle()
org.eclipse.swt.tests.junit.DPIUtilTests.scaleUpFloat()
org.eclipse.swt.tests.junit.DPIUtilTests.scaleUpIntArray()
org.eclipse.swt.tests.junit.DPIUtilTests.scaleUpInteger()
org.eclipse.swt.tests.junit.DPIUtilTests.scaleUpPoint()
org.eclipse.swt.tests.junit.DPIUtilTests.scaleUpRectangle()
org.eclipse.swt.tests.junit.DPIUtilTests.setup()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Display.test_Constructor()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_GC.test_copyAreaIIIIII()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_GC.test_copyAreaLorg_eclipse_swt_graphics_ImageII()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Image.test_getImageData_100()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Image.test_getImageData_125()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Image.test_getImageData_150()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Image.test_getImageData_200()
org.eclipse.swt.tests.junit.Test_org_eclipse_swt_graphics_Image.test_updateWidthHeightAfterDPIChange()
org.eclipse.swt.widgets.WidgetWin32Tests.testButtonFontAfterZooming()
org.eclipse.swt.widgets.WidgetWin32Tests.testButtonPointsAfterZooming()
org.eclipse.swt.widgets.WidgetWin32Tests.testCaretInStyledTextAfterZooming()
org.eclipse.swt.widgets.WidgetWin32Tests.testCoolItemAfterZooming()
org.eclipse.swt.widgets.ControlWin32Tests.testDoNotScaleFontCorrectlyInNoAutoScaleSzenario()
org.eclipse.swt.widgets.WidgetWin32Tests.testExpandItemAfterZooming()
org.eclipse.swt.widgets.WidgetWin32Tests.testImagePixelsWithDoubleZoomLevel()
org.eclipse.swt.graphics.ImageWin32Tests.testImageShouldHaveDimesionAsPerZoomLevel()
org.eclipse.swt.graphics.RegionWin32Tests.testRegionMustBeScaledOnHandleOfScaledZoomLevel()
org.eclipse.swt.graphics.TransformWin32Tests.testScaledTrasformMustHaveScaledValues()
org.eclipse.swt.widgets.ControlWin32Tests.testScaleFontCorrectlyInAutoScaleSzenario()
org.eclipse.swt.graphics.TransformWin32Tests.testShouldHaveDifferentHandlesAtDifferentZoomLevels()
org.eclipse.swt.widgets.WidgetWin32Tests.testTabFolderSizeAfterZooming()
org.eclipse.swt.widgets.WidgetWin32Tests.testTableAfterZooming()
org.eclipse.swt.widgets.WidgetWin32Tests.testTreeAfterZooming()
org.eclipse.swt.widgets.WidgetWin32Tests.testWidgetZoomShouldChangeOnZoomLevelChange()
`

Metadata

Metadata

Assignees

Labels

HiDPIA HiDPI-Related Issue or FeatureSWTIssue for SWT

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions