ref: a3de9a6340d08af528695dc678fad6ad5cd73cb4
parent: a27852654d9784d36f24478dff46df1e74cb5065
author: Olav Sørensen <[email protected]>
date: Tue Jan 19 07:52:14 EST 2021
Just some minor changes
--- a/src/ft2_events.c
+++ b/src/ft2_events.c
@@ -424,7 +424,7 @@
if (editor.busy)
{
const uint32_t eventType = event.type;
- const SDL_Keycode key = event.key.keysym.scancode;
+ const SDL_Scancode key = event.key.keysym.scancode;
/* The Echo tool in Smp. Ed. can take forever if abused, let
** mouse buttons/ESC/SIGTERM force-stop it.
--- a/src/ft2_replayer.c
+++ b/src/ft2_replayer.c
@@ -127,7 +127,7 @@
{
#define NOTE_C4 (4*12)
#define MIN_PERIOD (0)
- #define MAX_PERIOD (((10*12*16)-1)-1) /* -1 (because of bugged amigaPeriods table values */
+ #define MAX_PERIOD (((10*12*16)-1)-1) /* -1 (because of bugged amigaPeriods table values) */
if (midCFreq <= 0 || note2Period == NULL)
{
@@ -499,7 +499,7 @@
finetune = ((int8_t)finetune >> 3) + 16;
- // this is not 100% accurate for all periods, but should be much faster than using log2()
+ // this is not 100% accurate for all periods, but should be faster than using log2() and floating-point arithmetics
int32_t hiPeriod = (10*12*16)+16;
int32_t loPeriod = 0;