History

Hide "64-bit" text in window title for 64-bit version

Olav Sørensen committed 4 years ago

Commit ebfcc611 parent ef1339a2 files · +23 −9Browse files

Unified · Split

2 files
  1. src/ft2_header.h +3 −3
  2. src/ft2_video.c +20 −6
src/ft2_header.h+3−3
@@ -12,7 +12,7 @@ · 11 unmodified lines
1212 #endif
1313 #include "ft2_replayer.h"
1414
15−#define PROG_VER_STR "1.56"
15+#define PROG_VER_STR "1.57"
1616
1717 // do NOT change these! It will only mess things up...
1818
@@ -37,8 +37,8 @@ · 18 unmodified lines
3737 ** branchless in the inner channel mixer loop.
3838 ** Warning: Do not change this!
3939 */
40−#define SMP_DAT_OFFSET 32
41−#define SAMPLE_PAD_LENGTH (SMP_DAT_OFFSET+32)
40+#define SMP_DAT_OFFSET ((SINC_LEFT_TAPS*2)+1)
41+#define SAMPLE_PAD_LENGTH (SMP_DAT_OFFSET+(SINC_RIGHT_TAPS*2))
4242
4343 #ifndef _WIN32
4444 #define _stricmp strcasecmp
src/ft2_video.c+20−6
@@ -888,17 +888,31 @@ void updateWindowTitle(bool forceUpdate) · 887 unmodified lines
888888 strncpy(songTitleTrunc, songTitle, sizeof (songTitleTrunc)-1);
889889 songTitleTrunc[sizeof (songTitleTrunc)-1] = '\0';
890890
891− if (song.isModified)
892− sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"%s\" (unsaved)", PROG_VER_STR, CPU_BITS, songTitleTrunc);
893− else
894− sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"%s\"", PROG_VER_STR, CPU_BITS, songTitleTrunc);
891+#if CPU_BITS==32
892+ if (song.isModified)
893+ sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"%s\" (unsaved)", PROG_VER_STR, songTitleTrunc);
894+ else
895+ sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"%s\"", PROG_VER_STR, songTitleTrunc);
896+#else
897+ if (song.isModified)
898+ sprintf(wndTitle, "Fasttracker II clone v%s - \"%s\" (unsaved)", PROG_VER_STR, songTitleTrunc);
899+ else
900+ sprintf(wndTitle, "Fasttracker II clone v%s - \"%s\"", PROG_VER_STR, songTitleTrunc);
901+#endif
895902 }
896903 else
897904 {
905+#if CPU_BITS==32
898906 if (song.isModified)
899− sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"untitled\" (unsaved)", PROG_VER_STR, CPU_BITS);
907+ sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"untitled\" (unsaved)", PROG_VER_STR);
900908 else
901− sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"untitled\"", PROG_VER_STR, CPU_BITS);
909+ sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"untitled\"", PROG_VER_STR);
910+#else
911+ if (song.isModified)
912+ sprintf(wndTitle, "Fasttracker II clone v%s - \"untitled\" (unsaved)", PROG_VER_STR);
913+ else
914+ sprintf(wndTitle, "Fasttracker II clone v%s - \"untitled\"", PROG_VER_STR);
915+#endif
902916 }
903917
904918 SDL_SetWindowTitle(video.window, wndTitle);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t