mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-10 01:24:41 -06:00
Fix build
This commit is contained in:
parent
b3e05aad1d
commit
c038e199b7
@ -53,7 +53,7 @@ public:
|
||||
private:
|
||||
bool HasMonitorChanged()
|
||||
{
|
||||
HWND hWnd = (HWND)WindowSystem::getWindowInfo().canvas_main.surface;
|
||||
HWND hWnd = (HWND)WindowSystem::GetWindowInfo().canvas_main.surface;
|
||||
if (hWnd == 0)
|
||||
return true;
|
||||
HMONITOR hMonitor = MonitorFromWindow(hWnd, MONITOR_DEFAULTTONEAREST);
|
||||
@ -71,7 +71,7 @@ private:
|
||||
|
||||
HRESULT GetAdapterHandleFromHwnd(D3DKMT_HANDLE* phAdapter, UINT* pOutput)
|
||||
{
|
||||
HWND hWnd = (HWND)WindowSystem::getWindowInfo().canvas_main.surface;
|
||||
HWND hWnd = (HWND)WindowSystem::GetWindowInfo().canvas_main.surface;
|
||||
if (hWnd == 0)
|
||||
return E_FAIL;
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ DirectSoundAPI::DirectSoundAPI(GUID* guid, sint32 samplerate, sint32 channels, s
|
||||
if (DirectSoundCreate8(guid, &m_direct_sound, nullptr) != DS_OK)
|
||||
throw std::runtime_error("can't create directsound device");
|
||||
|
||||
if (FAILED(m_direct_sound->SetCooperativeLevel(static_cast<HWND>(WindowSystem::getWindowInfo().window_main.surface), DSSCL_PRIORITY)))
|
||||
if (FAILED(m_direct_sound->SetCooperativeLevel(static_cast<HWND>(WindowSystem::GetWindowInfo().window_main.surface), DSSCL_PRIORITY)))
|
||||
throw std::runtime_error("can't set directsound priority");
|
||||
|
||||
DSBUFFERDESC bd{};
|
||||
|
||||
@ -586,7 +586,7 @@ class XMLDataConfig<T> : public XMLConfig<XMLConfigWrapper<T>>
|
||||
: XMLConfig<XMLConfigWrapper<T>>::XMLConfig(m_configWrapper, filename), m_configWrapper() {}
|
||||
|
||||
XMLDataConfig(std::wstring_view filename, T init_data)
|
||||
: XMLConfig<XMLConfigWrapper<T>>::XMLConfig(m_configWrapper, filename), m_configWrapper(std::move(init_data)) {}
|
||||
: XMLConfig<XMLConfigWrapper<T>>::XMLConfig(m_configWrapper, filename), m_configWrapper{.data = std::move(init_data)} {}
|
||||
|
||||
XMLDataConfig(const XMLDataConfig& o) = delete;
|
||||
|
||||
|
||||
@ -104,7 +104,7 @@ bool DirectInputController::connect()
|
||||
return false;
|
||||
}
|
||||
|
||||
HWND hwndMainWindow = static_cast<HWND>(WindowSystem::getWindowInfo().window_main.surface);
|
||||
HWND hwndMainWindow = static_cast<HWND>(WindowSystem::GetWindowInfo().window_main.surface);
|
||||
|
||||
// set access
|
||||
if (FAILED(m_device->SetCooperativeLevel(hwndMainWindow, DISCL_BACKGROUND | DISCL_EXCLUSIVE)))
|
||||
|
||||
@ -227,7 +227,7 @@ int wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LP
|
||||
SDL_SetMainReady();
|
||||
if (!LaunchSettings::HandleCommandline(lpCmdLine))
|
||||
return 0;
|
||||
WindowSystem::create();
|
||||
WindowSystem::Create();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -239,7 +239,7 @@ int main(int argc, char* argv[])
|
||||
SDL_SetMainReady();
|
||||
if (!LaunchSettings::HandleCommandline(argc, argv))
|
||||
return 0;
|
||||
WindowSystem::create();
|
||||
WindowSystem::Create();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user