GideonZ / 1541ultimate

Official GIT archive of 1541 ultimate II sources
GNU General Public License v3.0
173 stars 45 forks source link

Fix writing Dxx Images #329

Closed markusC64 closed 1 year ago

markusC64 commented 1 year ago

To reproduce the problem to be solved:

(1) Load a D64 image (or probably other image) into the Floppy Drive A (2) F5, Drive A, Save Binary, Enter Filename (3) Observe that the size is not the expected size, in case d64 it should be 683 × 256 ≈ 171k, but the filemanager shows 172k and its size is exactly 686 × 256.

This patch fixes that.

markusC64 commented 1 year ago

Re-Pushed due to your latest commit.

Now the problem is solved, but some code optimization is possible, see the comments in your commit on github.