Index: ui/aura/test/test_screen.cc |
diff --git a/ui/aura/test/test_screen.cc b/ui/aura/test/test_screen.cc |
index 4ffc2d855eada7ec162b6f32a1be29b79c5a2546..d06812b27ca886ae8c87ac6290b8ed5d6f5307d9 100644 |
--- a/ui/aura/test/test_screen.cc |
+++ b/ui/aura/test/test_screen.cc |
@@ -63,21 +63,20 @@ void TestScreen::SetUIScale(float ui_scale) { |
gfx::Transform TestScreen::GetRotationTransform() const { |
gfx::Transform rotate; |
- float one_pixel = 1.0f / display_.device_scale_factor(); |
switch (display_.rotation()) { |
case gfx::Display::ROTATE_0: |
break; |
case gfx::Display::ROTATE_90: |
- rotate.Translate(display_.bounds().height() - one_pixel, 0); |
+ rotate.Translate(display_.bounds().width(), 0); |
rotate.Rotate(90); |
break; |
case gfx::Display::ROTATE_270: |
- rotate.Translate(0, display_.bounds().width() - one_pixel); |
+ rotate.Translate(0, display_.bounds().height()); |
rotate.Rotate(270); |
break; |
case gfx::Display::ROTATE_180: |
- rotate.Translate(display_.bounds().width() - one_pixel, |
- display_.bounds().height() - one_pixel); |
+ rotate.Translate(display_.bounds().height(), |
+ display_.bounds().width()); |
rotate.Rotate(180); |
break; |
} |