Merge branch 'rmc47-rdwavepainter-unsigned-on-arm'

This commit is contained in:
Fred Gleason 2022-11-15 13:38:17 -05:00
commit 96de66481b
2 changed files with 5 additions and 2 deletions

View File

@ -20948,3 +20948,6 @@
* Incremented the package version to 3.6.5int6.
2022-10-02 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 3.6.6.
2022-11-15 Fred Gleason <fredg@paravelsystems.com>
* Applied a PR from Robert Chipperfield that broke waveform
generation on ARM architectures.

View File

@ -221,8 +221,8 @@ void RDWavePainter::drawWaveByMsecs(int x,int w,int startmsecs,int endmsecs,
int startclip,int endclip)
{
drawWaveBySamples(x,w,
(unsigned)((double)startmsecs*(double)wave_sample_rate/1000.0),
(unsigned)((double)endmsecs*(double)wave_sample_rate/1000.0),
(int)((double)startmsecs*(double)wave_sample_rate/1000.0),
(int)((double)endmsecs*(double)wave_sample_rate/1000.0),
gain,channel,color,
(int)((double)startclip*(double)wave_sample_rate/1000.0),
(int)((double)endclip*(double)wave_sample_rate/1000.0));