File tree Expand file tree Collapse file tree
compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/scene Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,11 +29,9 @@ import androidx.compose.ui.platform.PlatformWindowContext
2929import androidx.compose.ui.scene.skia.SkiaLayerComponent
3030import androidx.compose.ui.skiko.OverlayRenderDecorator
3131import androidx.compose.ui.unit.Density
32- import androidx.compose.ui.unit.IntRect
3332import androidx.compose.ui.unit.LayoutDirection
3433import androidx.compose.ui.unit.roundToIntRect
3534import androidx.compose.ui.unit.toOffset
36- import androidx.compose.ui.util.fastRoundToInt
3735import androidx.compose.ui.window.density
3836import androidx.compose.ui.window.getDialogScrimBlendMode
3937import androidx.compose.ui.window.layoutDirectionFor
@@ -115,12 +113,8 @@ internal class WindowComposeSceneLayer(
115113 override var scrimColor: Color ? = null
116114
117115 init {
118- drawBounds = IntRect (
119- 0 ,
120- 0 ,
121- windowContainer.sizeInPx.width.fastRoundToInt(),
122- windowContainer.sizeInPx.height.fastRoundToInt()
123- )
116+ val boundsInPx = windowContainer.sizeInPx.toRect()
117+ drawBounds = boundsInPx.roundToIntRect()
124118 mediator = ComposeSceneMediator (
125119 container = container,
126120 isWindowLevel = true ,
You can’t perform that action at this time.
0 commit comments