]> Shamusworld >> Repos - wozmaker/commitdiff
Cross platform fix: make it so A2R files are readable under Windows.
authorShamus Hammons <jlhamm@acm.org>
Wed, 9 Jan 2019 13:21:49 +0000 (07:21 -0600)
committerShamus Hammons <jlhamm@acm.org>
Wed, 9 Jan 2019 13:21:49 +0000 (07:21 -0600)
src/fileio.cpp
src/waveformwidget.cpp

index d8ff4653da539e4456628739dd74596d857c43e0..ab9344a4e64e82a887a3c60b2e7ee8655d171aea 100644 (file)
@@ -64,7 +64,7 @@ uint32_t CRC32(const uint8_t * data, uint32_t length)
 
 uint8_t * ReadFile(const char * filename, uint32_t * size)
 {
-       FILE * fp = fopen(filename, "r");
+       FILE * fp = fopen(filename, "rb");
 
        if (!fp)
                return NULL;
index c00bc778371be1cc34e11569e3123402878c10f9..5393be33b970273952d31842986e2087a4426123 100644 (file)
@@ -283,7 +283,7 @@ void WaveformWidget::paintEvent(QPaintEvent * event)
 
 //                             if (i > 0)
        //                              x += timeToNext / 2;
-                                       x += ((double)timeToNext / 2.0);// * ratio[wfNum];
+                                       x += ((double)timeToNext / 2.0);
 
 //                             if ((Global::stream[j]->data[offset + i] > 24) || (i == 0))
                                {