mczachurski / wallpapper

:computer: Console application for creating dynamic wallpapers for macOS Mojave and newer
MIT License
3.31k stars 137 forks source link

Fix missing index in time info item #37

Closed bosphere closed 5 years ago

bosphere commented 5 years ago

The current version 1.4.1 generates all time info items with the same value of 0 for key i:

    <key>ti</key>
    <array>
        <dict>
            <key>i</key>
            <integer>0</integer>
            <key>t</key>
            <real>0.375</real>
        </dict>
        <dict>
            <key>i</key>
            <integer>0</integer>
            <key>t</key>
            <real>0.0</real>
        </dict>
        <dict>
            <key>i</key>
            <integer>0</integer>
            <key>t</key>
            <real>0.125</real>
        </dict>
        ...
    </array>

This won't work as the OS is expecting each time info item to have the correct index value corresponding to the image resource. This PR addresses this issue.