Browse Source

Fixed tile background scaling

Krzysztof Krysiński 2 years ago
parent
commit
165641069b
1 changed files with 3 additions and 0 deletions
  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>
                 <Border.Background>
                     <!--TODO: Seems like DestinationRect of anything with size below and equal to 1 is tiling texture wrong-->
                     <!--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 Source="/Images/CheckerTile.png" TileMode="Tile">
+                        <ImageBrush.Transform>
+                            <ScaleTransform ScaleX="0.5" ScaleY="0.5"/>
+                        </ImageBrush.Transform>
                         <ImageBrush.DestinationRect>
                         <ImageBrush.DestinationRect>
                             <Binding Path="Scale" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type zoombox:Zoombox}}"
                             <Binding Path="Scale" RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type zoombox:Zoombox}}"
                                      Converter="{converters:ZoomToViewportConverter}">
                                      Converter="{converters:ZoomToViewportConverter}">