commit 6e41a3ed06078ad5c2b42b85df164f6aa7f3dd3f
parent 9e5fc9bf08e3dcac508fb4d49e9d00445f7d63ea
Author: cfillion <cfillion@users.noreply.github.com>
Date: Sun, 29 Jul 2018 12:26:20 -0400
fix build with up-to-date SWELL
WM_SETREDRAW is now defined and used on macOS
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/control.cpp b/src/control.cpp
@@ -23,7 +23,7 @@ map<HWND, InhibitControl *> InhibitControl::s_lock;
void InhibitControl::inhibitRedraw(const bool inhibit)
{
-#ifdef WM_SETREDRAW // not supported by SWELL
+#ifdef _WIN32
if(s_lock.count(m_handle)) {
if(inhibit || s_lock[m_handle] != this)
return;