commit d0a496189101d3e1d057a81a98c63b5c933d8541
parent a676f44f872c8d3eff609287f679257243da0251
Author: cfillion <cfillion@users.noreply.github.com>
Date: Tue, 24 Oct 2017 03:30:07 -0700
listview: enable double buffering on Windows
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/listview.cpp b/src/listview.cpp
@@ -42,6 +42,10 @@ ListView::ListView(HWND handle, const Columns &columns)
// unsupported by SWELL, but always enabled on OS X anyway
setExStyle(LVS_EX_LABELTIP, true);
#endif
+
+#ifdef LVS_EX_DOUBLEBUFFER
+ setExStyle(LVS_EX_DOUBLEBUFFER, true);
+#endif
}
void ListView::setExStyle(const int style, const bool enable)