summaryrefslogtreecommitdiffhomepage
path: root/Stars45
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-10-02 22:06:46 +0200
committerAki <please@ignore.pl>2021-10-02 22:06:46 +0200
commit85a3e12709e22d8d268317c397a14785753163d1 (patch)
tree84ac0c206f28851d3224e3642d7f3dd637fc8ae2 /Stars45
parent72cadc9178ceffd5900cc32d88c42d5d6da25e83 (diff)
downloadstarshatter-85a3e12709e22d8d268317c397a14785753163d1.zip
starshatter-85a3e12709e22d8d268317c397a14785753163d1.tar.gz
starshatter-85a3e12709e22d8d268317c397a14785753163d1.tar.bz2
Switched to use game handler instead as mingw couldnt find extern one
Diffstat (limited to 'Stars45')
-rw-r--r--Stars45/MCIWave.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/MCIWave.cpp b/Stars45/MCIWave.cpp
index 25bfdad..1424b7d 100644
--- a/Stars45/MCIWave.cpp
+++ b/Stars45/MCIWave.cpp
@@ -38,6 +38,7 @@
#include "MemDebug.h"
#include "Types.h"
+#include "Game.h"
// +----------------------------------------------------------------------+
@@ -50,11 +51,10 @@ static char ret_str[MCI_MAX_STR];
static char err_str[MCI_MAX_STR];
static MCIERROR mci_err;
static MMRESULT wav_err;
-extern HWND hwndApp;
static int mci_send_string(const char* cmd_str)
{
- mci_err = mciSendString(cmd_str, ret_str, sizeof(ret_str), hwndApp);
+ mci_err = mciSendString(cmd_str, ret_str, sizeof(ret_str), Game::GetHWND());
if (mci_err) {
if (mciGetErrorString(mci_err, err_str, sizeof(err_str)))
Print("Error (%s): '%s'\n", cmd_str, err_str);