]> Pileus Git - ~andy/spades/commitdiff
Add border around cards
authorAndy Spencer <andy753421@gmail.com>
Fri, 21 Feb 2014 07:04:52 +0000 (07:04 +0000)
committerAndy Spencer <andy753421@gmail.com>
Fri, 21 Feb 2014 07:04:52 +0000 (07:04 +0000)
This prevents aliasing on the card edges because the texture gets
min-filtered even though GLES20 doesn't support POLYGON_SMOOTH.

makefile

index 49c95d8c5ce6de3abbd16a7aae2b474fa9efd2d3..94988d6bf5fe5f05561e2472160574419f3ea729 100644 (file)
--- a/makefile
+++ b/makefile
@@ -68,7 +68,10 @@ convert:
                png=$${png/opt/res};             \
                rsvg-convert -w 2048 -h 2048     \
                        $$svg -o $$png;          \
-               convert -trim -resize '256x256!' \
+               convert -trim                    \
+                       -resize      '254x254!'  \
+                       -bordercolor '#00000000' \
+                       -border      '1x1'       \
                        $$png $$png;             \
        done