更新 'src/Viewer/WindowBuilder.cxx'
This commit is contained in:
@@ -92,13 +92,17 @@ void WindowBuilder::makeDefaultTraits(bool stencil)
|
|||||||
|
|
||||||
traits->doubleBuffer = true;
|
traits->doubleBuffer = true;
|
||||||
traits->mipMapGeneration = true;
|
traits->mipMapGeneration = true;
|
||||||
traits->windowName = "FlightGear";
|
traits->windowName = "JingweiHT";
|
||||||
// XXX should check per window too.
|
// XXX should check per window too.
|
||||||
traits->sampleBuffers = fgGetInt("/sim/rendering/multi-sample-buffers", traits->sampleBuffers);
|
traits->sampleBuffers = fgGetInt("/sim/rendering/multi-sample-buffers", traits->sampleBuffers);
|
||||||
traits->samples = fgGetInt("/sim/rendering/multi-samples", traits->samples);
|
traits->samples = fgGetInt("/sim/rendering/multi-samples", traits->samples);
|
||||||
traits->vsync = fgGetBool("/sim/rendering/vsync-enable", traits->vsync);
|
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 screenwidth = 0;
|
||||||
unsigned screenheight = 0;
|
unsigned screenheight = 0;
|
||||||
// this is a deprecated method, should be screen-aware.
|
// this is a deprecated method, should be screen-aware.
|
||||||
|
|||||||
Reference in New Issue
Block a user