reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit 8c655c2877fb278e72ab9b340444a48411047b84
parent c1c36d587340cd6ed1609e4cb2ea747475560f6c
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon,  1 Feb 2016 03:18:31 -0500

use feature detection instead of OS detection when possible

Diffstat:
Msrc/control.hpp | 2+-
Msrc/dialog.cpp | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/control.hpp b/src/control.hpp @@ -35,7 +35,7 @@ public: void inhibitRedraw(const bool inhibit) { -#ifdef _WIN32 +#ifdef WM_SETREDRAW // WM_SETREDRAW is not supported by SWELL SendMessage(m_handle, WM_SETREDRAW, !inhibit, 0); #endif diff --git a/src/dialog.cpp b/src/dialog.cpp @@ -56,7 +56,7 @@ WDL_DLGRET Dialog::Proc(HWND handle, UINT msg, WPARAM wParam, LPARAM lParam) else dlg->onHide(); break; -#ifdef _WIN32 +#ifdef WM_ENABLE case WM_ENABLE: // not supported by SWELL dlg->m_isEnabled = wParam == 1; break;