From 5748ab7e0dbe2ac4b9f39785a5c69976d356b02e Mon Sep 17 00:00:00 2001 From: jpark37 Date: Mon, 7 Feb 2022 23:24:10 -0800 Subject: [PATCH] UI: Wire up WM_MOVE and WM_DISPLAYCHANGE events --- UI/qt-display.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/UI/qt-display.cpp b/UI/qt-display.cpp index 7dca7ead4..06414c007 100644 --- a/UI/qt-display.cpp +++ b/UI/qt-display.cpp @@ -221,6 +221,14 @@ QPaintEngine *OBSQTDisplay::paintEngine() const return nullptr; } -void OBSQTDisplay::OnMove() {} +void OBSQTDisplay::OnMove() +{ + if (display) + obs_display_update_color_space(display); +} -void OBSQTDisplay::OnDisplayChange() {} +void OBSQTDisplay::OnDisplayChange() +{ + if (display) + obs_display_update_color_space(display); +}