Commit 1dd18245 authored by Igor Demin's avatar Igor Demin

Add a comment about checkContentScale

parent 318e3862
......@@ -46,6 +46,7 @@ abstract class HardwareLayer : Canvas() {
checkContentScale()
}
// TODO checkContentScale is called before init. it is ok, but when we fix getDpiScale on Linux we should check [isInit]
private fun checkContentScale() {
val contentScale = getDpiScale()
if (contentScale != _contentScale) {
......
......@@ -78,6 +78,8 @@ internal val platformOperations: PlatformOperations by lazy {
// (it is not good, because on different platform windows will have different size.
// Maybe we will apply contentScale manually on all platforms?)
// see also comment for HardwareLayer.checkContentScale
// return linuxGetDpiScaleNative(component)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment