MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / ToggleFullscreen

Function ToggleFullscreen

Source/Player/WinMain.cpp:137–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137static void ToggleFullscreen(HWND hwnd) {
138 if (!BE1::rhi.IsFullscreen()) {
139 ChangeRenderWindow(hwnd, disp_width.GetInteger(), disp_height.GetInteger(), true);
140
141 BE1::rhi.SetFullscreen(app.mainRenderContext->GetContextHandle(), disp_width.GetInteger(), disp_height.GetInteger());
142 } else {
143 BE1::rhi.ResetFullscreen(app.mainRenderContext->GetContextHandle());
144
145 ChangeRenderWindow(hwnd, disp_width.GetInteger(), disp_height.GetInteger(), false);
146 }
147}
148
149static void DisplayContext(BE1::RHI::Handle context, void *dataPtr) {
150 app.Draw();

Callers 1

WndProcFunction · 0.70

Calls 5

GetContextHandleMethod · 0.80
ChangeRenderWindowFunction · 0.70
IsFullscreenMethod · 0.45
SetFullscreenMethod · 0.45
ResetFullscreenMethod · 0.45

Tested by

no test coverage detected