Update framework to account from engine API changes (#5887)

The engine now reports coordinates in physical pixels.
This commit is contained in:
Adam Barth
2016-09-15 13:13:42 -07:00
committed by GitHub
parent 9109bb02b9
commit 179ea4a0a6
17 changed files with 41 additions and 32 deletions

View File

@@ -724,8 +724,8 @@ class TestViewConfiguration extends ViewConfiguration {
super(size: size);
static Matrix4 _getMatrix(Size size, double devicePixelRatio) {
final double actualWidth = ui.window.size.width * devicePixelRatio;
final double actualHeight = ui.window.size.height * devicePixelRatio;
final double actualWidth = ui.window.physicalSize.width;
final double actualHeight = ui.window.physicalSize.height;
final double desiredWidth = size.width;
final double desiredHeight = size.height;
double scale, shiftX, shiftY;