瀏覽代碼

Fixed tile background scaling

Krzysztof Krysiński 2 年之前
父節點
當前提交
165641069b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/PixiEditor.AvaloniaUI/Views/Main/Viewport.axaml

+ 3 - 0
src/PixiEditor.AvaloniaUI/Views/Main/Viewport.axaml

@@ -135,6 +135,9 @@
                 <Border.Background>
                     <!--TODO: Seems like DestinationRect of anything with size below and equal to 1 is tiling texture wrong-->
                     <ImageBrush Source="/Images/CheckerTile.png" TileMode="Tile">
+                        <ImageBrush.Transform>
+                            <ScaleTransform ScaleX="0.5" ScaleY="0.5"/>
+                        </ImageBrush.Transform>
                         <ImageBrush.DestinationRect>
                             <Binding Path="Scale" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type zoombox:Zoombox}}"
                                      Converter="{converters:ZoomToViewportConverter}">