aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaluca Sauciuc <ralucas@google.com>2018-06-20 11:51:09 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-06-20 11:51:09 -0700
commit34454c096895ff40d0c87a56e54356fb2a796412 (patch)
tree7fa596caac98cf2a785ec3087adddafa578ad53c
parentbfe6ebda9d4ffba011bdde53c4511d2694965879 (diff)
parent1da675d8d72ec67349efea838c95706b1eec373c (diff)
downloadjdk8u_jdk-34454c096895ff40d0c87a56e54356fb2a796412.tar.gz
Revert "round fp scale"
am: 1da675d8d7 Change-Id: Ide9ad56432b5cf23f69e91f0d11f06c7c0154ed3
-rw-r--r--src/windows/native/sun/windows/awt_Win32GraphicsDevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/windows/native/sun/windows/awt_Win32GraphicsDevice.cpp b/src/windows/native/sun/windows/awt_Win32GraphicsDevice.cpp
index 9003b781f8..ef9023b382 100644
--- a/src/windows/native/sun/windows/awt_Win32GraphicsDevice.cpp
+++ b/src/windows/native/sun/windows/awt_Win32GraphicsDevice.cpp
@@ -750,8 +750,8 @@ void AwtWin32GraphicsDevice::InitDesktopScales()
}
}
- int scaleX = (int)round(dpiX / 96);
- int scaleY = (int)round(dpiY / 96);
+ float scaleX = dpiX / 96;
+ float scaleY = dpiY / 96;
if (scaleX > 0 && scaleY > 0) {
SetScale(scaleX, scaleY);
}