Commits

shemnon  committed de53eb0

Windows seems happier with one color depth and icons in big to little order.

  • Participants
  • Parent commits 5b71b16

Comments (0)

Files changed (1)

File gradle-javafx-plugin/src/main/groovy/org/bitbucket/shemnon/javafxplugin/tasks/JavaFXDeployTask.groovy

         }
         if (images) {
             destination.parentFile.mkdirs()
-            List<BufferedImage> icons = images.values() as List
-            icons.addAll(images.values())
-            icons.addAll(images.values())
-            int imageCount = images.size()
-            int[] depths = [-1]*imageCount + [8]*imageCount + [4]*imageCount
-            ICOEncoder.write(icons, depths, destination)
+            List<BufferedImage> icons = (images.values() as List).reverse()
+            ICOEncoder.write(icons, destination)
         }
     }