Skip to content

Commit

Permalink
Merge pull request #28 from cdb-boop/master
Browse files Browse the repository at this point in the history
Bug Fixes: Animate View dialog "background" button position update on resize + use resampled audio
  • Loading branch information
Kawa-oneechan authored Oct 15, 2024
2 parents 7e2f396 + 8a714fb commit 4314c86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SCICompanionLib/Src/Dialogs/AnimateDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void CAnimateDialog::OnSize(UINT nType, int cx, int cy)
rectAnimateScreen.bottom = rectAnimateScreen.top + rectAnimateScreen.Height() + dy;
m_wndAnimate.MoveWindow(&rectAnimateScreen, TRUE);

int rgid[] = { IDOK, IDC_BUTTONPLAY };
int rgid[] = { IDOK, IDC_BUTTONBG, IDC_BUTTONPLAY };
for (int i = 0; i < ARRAYSIZE(rgid); i++)
{
CWnd *pOk = GetDlgItem(rgid[i]);
Expand Down
2 changes: 1 addition & 1 deletion SCICompanionLib/Src/Util/SoundUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ void AudioComponentFromWaveFile(sci::istream &stream, AudioComponent &audio, Aud
audio.DigitalSamplePCM.assign(samplesWritten * convertedSampleSize, 0);
for (int i = 0; i < samplesWritten; i++)
{
double f = fpData[i];
double f = results[i];
uint16_t value;
if (convertedSampleSize == 2)
{
Expand Down

0 comments on commit 4314c86

Please sign in to comment.