ref: ebfcc611d346e73f15514d70814efc7c1eef41b1
parent: ef1339a8301a0e52dce4a09d0febb8c8bf7074da
author: Olav Sørensen <olav.sorensen@live.no>
date: Sun Sep 4 11:09:39 EDT 2022
Hide "64-bit" text in window title for 64-bit version
--- a/src/ft2_header.h
+++ b/src/ft2_header.h
@@ -12,7 +12,7 @@
#endif
#include "ft2_replayer.h"
-#define PROG_VER_STR "1.56"
+#define PROG_VER_STR "1.57"
// do NOT change these! It will only mess things up...
@@ -37,8 +37,8 @@
** branchless in the inner channel mixer loop.
** Warning: Do not change this!
*/
-#define SMP_DAT_OFFSET 32
-#define SAMPLE_PAD_LENGTH (SMP_DAT_OFFSET+32)
+#define SMP_DAT_OFFSET ((SINC_LEFT_TAPS*2)+1)
+#define SAMPLE_PAD_LENGTH (SMP_DAT_OFFSET+(SINC_RIGHT_TAPS*2))
#ifndef _WIN32
#define _stricmp strcasecmp
--- a/src/ft2_video.c
+++ b/src/ft2_video.c
@@ -888,17 +888,31 @@
strncpy(songTitleTrunc, songTitle, sizeof (songTitleTrunc)-1);
songTitleTrunc[sizeof (songTitleTrunc)-1] = '\0';
- if (song.isModified)
- sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"%s\" (unsaved)", PROG_VER_STR, CPU_BITS, songTitleTrunc);
- else
- sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"%s\"", PROG_VER_STR, CPU_BITS, songTitleTrunc);
+#if CPU_BITS==32
+ if (song.isModified)
+ sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"%s\" (unsaved)", PROG_VER_STR, songTitleTrunc);
+ else
+ sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"%s\"", PROG_VER_STR, songTitleTrunc);
+#else
+ if (song.isModified)
+ sprintf(wndTitle, "Fasttracker II clone v%s - \"%s\" (unsaved)", PROG_VER_STR, songTitleTrunc);
+ else
+ sprintf(wndTitle, "Fasttracker II clone v%s - \"%s\"", PROG_VER_STR, songTitleTrunc);
+#endif
}
else
{
+#if CPU_BITS==32
if (song.isModified)
- sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"untitled\" (unsaved)", PROG_VER_STR, CPU_BITS);
+ sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"untitled\" (unsaved)", PROG_VER_STR);
else
- sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"untitled\"", PROG_VER_STR, CPU_BITS);
+ sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"untitled\"", PROG_VER_STR);
+#else
+ if (song.isModified)
+ sprintf(wndTitle, "Fasttracker II clone v%s - \"untitled\" (unsaved)", PROG_VER_STR);
+ else
+ sprintf(wndTitle, "Fasttracker II clone v%s - \"untitled\"", PROG_VER_STR);
+#endif
}
SDL_SetWindowTitle(video.window, wndTitle);