Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.c text eol=crlf
*.h text eol=crlf
*.dsp text eol=crlf
*.rc text eol=crlf
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Prerequisites
*.d

# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp
*.lk1
*.err

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb
4 changes: 4 additions & 0 deletions src/esdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

DWORD EnumESSDevices(HWND hWnd, void (*EnumCB)(ESS_DEVCFG *pCfg, void *pUser), void *pUser)
{
#ifdef CM_Free_Log_Conf_Handle
GUID render = KSCATEGORY_RENDER;
HDEVINFO hDevInfo;
SP_DEVINFO_DATA infoData={0};
Expand Down Expand Up @@ -92,5 +93,8 @@ DWORD EnumESSDevices(HWND hWnd, void (*EnumCB)(ESS_DEVCFG *pCfg, void *pUser), v
}
}
return ret;
#else
return 0;
#endif
}

19 changes: 17 additions & 2 deletions src/esfmbank.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@
#pragma comment (lib, "winmm.lib")
#pragma comment (lib, "shlwapi.lib")

#ifndef DWORD_PTR
typedef unsigned long DWORD_PTR;
#endif

// VC6 workaround
static HWND GetRoot(HWND hwnd) {
HWND root = NULL;
HWND parent = hwnd;

while((parent = GetParent(parent)) != NULL) {
root = parent;
}

return root;
}

#pragma pack(1)
typedef struct
Expand Down Expand Up @@ -614,7 +629,7 @@ LRESULT CALLBACK OperatorDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
case IDCANCEL:
if (HIWORD(wParam) == BN_CLICKED)
{
HWND hWndRoot = GetAncestor(hWnd, GA_ROOT);
HWND hWndRoot = GetRoot(hWnd);
iCurSel = GetCurrentInstrument(hWndRoot);
if (iCurSel != LB_ERR)
{
Expand All @@ -628,7 +643,7 @@ LRESULT CALLBACK OperatorDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
case IDC_FP:
if (HIWORD(wParam) == BN_CLICKED)
{
HWND hWndRoot = GetAncestor(hWnd, GA_ROOT);
HWND hWndRoot = GetRoot(hWnd);
ChangeFixedPitch(hWnd, (HWND) lParam);
iCurSel = GetCurrentInstrument(hWndRoot);
ResetFNUM(hWnd, &m_patches.patches[iCurSel]);
Expand Down
20 changes: 10 additions & 10 deletions src/esfmbank.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 29 additions & 29 deletions src/esfmbank.dsw
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNUNG: DIESE ARBEITSBEREICHSDATEI DARF NICHT BEARBEITET ODER GEL�SCHT WERDEN!

###############################################################################

Project: "esfmbank"=".\esfmbank.dsp" - Package Owner=<4>

Package=<5>
{{{
}}}

Package=<4>
{{{
}}}

###############################################################################

Global:

Package=<5>
{{{
}}}

Package=<3>
{{{
}}}

###############################################################################

Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "esfmbank"=.\esfmbank.dsp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################
12 changes: 6 additions & 6 deletions src/res.rc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// Deutsch (Deutschland) resources
// German (Germany) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
#ifdef _WIN32
Expand All @@ -29,7 +29,7 @@ LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
IDD_PROPPAGE_OPERATOR DIALOGEX 0, 0, 196, 204
STYLE WS_CHILD
EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Sans Serif"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
LTEXT "Attack:",IDC_STATIC,4,5,30,9
EDITTEXT IDC_ATTACK,35,3,23,12,ES_AUTOHSCROLL | ES_NUMBER
Expand Down Expand Up @@ -121,7 +121,7 @@ END
IDD_PROPPAGE_VOICES DIALOGEX 0, 0, 211, 236
STYLE WS_CHILD
EXSTYLE WS_EX_CONTROLPARENT
FONT 8, "MS Sans Serif"
FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
CONTROL "Use channel 16+17",IDC_PAT16,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,0,1,99,10
Expand All @@ -146,12 +146,12 @@ BEGIN
END
#endif // APSTUDIO_INVOKED

#endif // Deutsch (Deutschland) resources
#endif // German (Germany) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Deutsch (�sterreich) resources
// German (Austria) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEA)
#ifdef _WIN32
Expand Down Expand Up @@ -364,7 +364,7 @@ BEGIN
IDM_EXIT "Exits the application"
END

#endif // Deutsch (�sterreich) resources
#endif // German (Austria) resources
/////////////////////////////////////////////////////////////////////////////


Expand Down