fix blurry image, original scale, resizing window
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
3459ec722b
commit
a1b0b90f08
@ -541,8 +541,8 @@ class _ImagePaintState extends State<ImagePaint> {
|
|||||||
imageWidget = Stack(
|
imageWidget = Stack(
|
||||||
children: [
|
children: [
|
||||||
Positioned(
|
Positioned(
|
||||||
left: c.x,
|
left: c.x.toInt().toDouble(),
|
||||||
top: c.y,
|
top: c.y.toInt().toDouble(),
|
||||||
width: c.getDisplayWidth() * s,
|
width: c.getDisplayWidth() * s,
|
||||||
height: c.getDisplayHeight() * s,
|
height: c.getDisplayHeight() * s,
|
||||||
child: Texture(textureId: widget.textureId.value),
|
child: Texture(textureId: widget.textureId.value),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user