Skip to content

Commit 8c3207f

Browse files
Merge pull request #2 from spazzymoto/master
Splash screens using icon.png on unix
2 parents a1e1a45 + 0a1ed30 commit 8c3207f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
// Declarations
1818
const imgIcon = "icon.png"
1919
const imgSplash = "splash.png"
20+
const splashPath = string(os.PathSeparator) + "splash" + string(os.PathSeparator)
2021

2122
func main() {
2223
//Defining Version
@@ -78,7 +79,7 @@ func GenerateResources(pngs []string) {
7879
for _, p := range pngs {
7980
width, height := GetImageDimension(p)
8081
src := LoadImage(imgIcon)
81-
if strings.Contains(p, "\\splash\\") {
82+
if strings.Contains(p, splashPath) {
8283
src = LoadImage(imgSplash)
8384
}
8485
filters := map[string]gift.Filter{

0 commit comments

Comments
 (0)