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
12#endif12#endif
13#include "ft2_replayer.h"13#include "ft2_replayer.h"
14 14
15#define PROG_VER_STR "1.56"15#define PROG_VER_STR "1.57"
16 16
17// do NOT change these! It will only mess things up...17// do NOT change these! It will only mess things up...
18 18
@@ -37,8 +37,8 @@ · 18 unmodified lines
37** branchless in the inner channel mixer loop.37** branchless in the inner channel mixer loop.
38** Warning: Do not change this!38** Warning: Do not change this!
39*/39*/
40#define SMP_DAT_OFFSET 3240#define SMP_DAT_OFFSET ((SINC_LEFT_TAPS*2)+1)
41#define SAMPLE_PAD_LENGTH (SMP_DAT_OFFSET+32)41#define SAMPLE_PAD_LENGTH (SMP_DAT_OFFSET+(SINC_RIGHT_TAPS*2))
42 42
43#ifndef _WIN3243#ifndef _WIN32
44#define _stricmp strcasecmp44#define _stricmp strcasecmp
src/ft2_video.c+20−6
@@ -888,17 +888,31 @@ void updateWindowTitle(bool forceUpdate) · 887 unmodified lines
888 strncpy(songTitleTrunc, songTitle, sizeof (songTitleTrunc)-1);888 strncpy(songTitleTrunc, songTitle, sizeof (songTitleTrunc)-1);
889 songTitleTrunc[sizeof (songTitleTrunc)-1] = '\0';889 songTitleTrunc[sizeof (songTitleTrunc)-1] = '\0';
890 890
891 if (song.isModified)891#if CPU_BITS==32
892 sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"%s\" (unsaved)", PROG_VER_STR, CPU_BITS, songTitleTrunc);892 if (song.isModified)
893 else893 sprintf(wndTitle, "Fasttracker II clone v%s (32-bit) - \"%s\" (unsaved)", PROG_VER_STR, songTitleTrunc);
894 sprintf(wndTitle, "Fasttracker II clone v%s (%d-bit) - \"%s\"", PROG_VER_STR, CPU_BITS, 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
895 }902 }
896 else903 else
897 {904 {
905#if CPU_BITS==32
898 if (song.isModified)906 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);
900 else908 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
902 }916 }
903 917
904 SDL_SetWindowTitle(video.window, wndTitle);918 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