From fcbe1ffc3729712c9f741cd6dfdfaefc7c86354d Mon Sep 17 00:00:00 2001 From: Jean-Philip Desjardins Date: Wed, 8 Aug 2018 12:21:41 -0400 Subject: [PATCH] Fix warning. --- Source/ui_unix/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/ui_unix/mainwindow.cpp b/Source/ui_unix/mainwindow.cpp index fb02ecfe..93a4c7fc 100644 --- a/Source/ui_unix/mainwindow.cpp +++ b/Source/ui_unix/mainwindow.cpp @@ -156,7 +156,7 @@ void MainWindow::openGLWindow_resized() auto scale = devicePixelRatioF(); CGSHandler::PRESENTATION_PARAMS presentationParams; - presentationParams.mode = (CGSHandler::PRESENTATION_MODE)CAppConfig::GetInstance().GetPreferenceInteger(PREF_CGSHANDLER_PRESENTATION_MODE); + presentationParams.mode = static_cast(CAppConfig::GetInstance().GetPreferenceInteger(PREF_CGSHANDLER_PRESENTATION_MODE)); presentationParams.windowWidth = w * scale; presentationParams.windowHeight = h * scale; m_virtualMachine->m_ee->m_gs->SetPresentationParams(presentationParams);