From ae6900e7d71757afae478cdc3a3081415c61bba8 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sun, 18 Oct 2020 13:48:24 -0400 Subject: [PATCH] Suppress the opengl test from generating "ghost frames" on Windows which appear and quickly disappear --- common/gal/opengl/opengl_gal.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index d1c18b2b85..f706ac9b38 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -327,9 +327,8 @@ OPENGL_GAL::~OPENGL_GAL() wxString OPENGL_GAL::CheckFeatures( GAL_DISPLAY_OPTIONS& aOptions ) { - - wxFrame* testFrame = - new wxFrame( NULL, wxID_ANY, wxT( "" ), wxDefaultPosition, wxSize( 1, 1 ) ); + wxFrame* testFrame = new wxFrame( NULL, wxID_ANY, wxT( "" ), wxDefaultPosition, wxSize( 1, 1 ), + wxFRAME_TOOL_WINDOW | wxNO_BORDER ); KIGFX::OPENGL_GAL* opengl_gal = new KIGFX::OPENGL_GAL( aOptions, testFrame ); testFrame->Raise();