mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Ensure tests pass on hidpi
This commit is contained in:
parent
3e7ebdc632
commit
ed71c5a1b8
@ -231,6 +231,9 @@ class TestQgsLegendPatchShape(unittest.TestCase):
|
||||
|
||||
def renderPatch(self, patch):
|
||||
image = QImage(200, 200, QImage.Format_RGB32)
|
||||
image.setDotsPerMeterX(96 / 25.4 * 1000)
|
||||
image.setDotsPerMeterY(96 / 25.4 * 1000)
|
||||
|
||||
painter = QPainter()
|
||||
painter.begin(image)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user