From 7e8a7a48ece60d7db92c500719447e8f15a84f18 Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 10 Nov 2022 15:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'src/Viewer/WindowBuilder.?= =?UTF-8?q?cxx'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Viewer/WindowBuilder.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Viewer/WindowBuilder.cxx b/src/Viewer/WindowBuilder.cxx index 32f29ab..9223c58 100644 --- a/src/Viewer/WindowBuilder.cxx +++ b/src/Viewer/WindowBuilder.cxx @@ -92,13 +92,17 @@ void WindowBuilder::makeDefaultTraits(bool stencil) traits->doubleBuffer = true; traits->mipMapGeneration = true; - traits->windowName = "FlightGear"; + traits->windowName = "JingweiHT"; // XXX should check per window too. traits->sampleBuffers = fgGetInt("/sim/rendering/multi-sample-buffers", traits->sampleBuffers); traits->samples = fgGetInt("/sim/rendering/multi-samples", traits->samples); traits->vsync = fgGetBool("/sim/rendering/vsync-enable", traits->vsync); - const bool wantFullscreen = fgGetBool("/sim/startup/fullscreen"); + //const bool wantFullscreen = fgGetBool("/sim/startup/fullscreen"); + + //zhongjin FullScreen + const bool wantFullscreen = true; + unsigned screenwidth = 0; unsigned screenheight = 0; // this is a deprecated method, should be screen-aware.