fna-workbench

fna-workbench Commit Details


Date:2016-01-04 11:34:41 (9 years 8 months ago)
Author:Ethan Lee
Branch:master
Commit:4cdcfa49d2e36ab060e1e53545c78f0559435458
Parents: 6cc846d8285be08363a577f56acaa2426cf9d756
Message:Fix OSX fullscreen on startup

Changes:

File differences

src/SDL2/SDL2_GameWindow.cs
244244
245245
246246
247
248
249
250
251
252
253
254
255
256
257
258
247259
248260
249261
INTERNAL_deviceName = screenDeviceName;
// Fullscreen
if (INTERNAL_wantsFullscreen &&
(SDL.SDL_GetWindowFlags(INTERNAL_sdlWindow) & (uint) SDL.SDL_WindowFlags.SDL_WINDOW_SHOWN) == 0)
{
/* FIXME: SDL2/OSX bug!
* For whatever reason, Spaces windows on OSX
* like to be high-DPI if you set fullscreen
* while the window is hidden. But, if you just
* show the window first, everything is fine.
* -flibit
*/
SDL.SDL_ShowWindow(INTERNAL_sdlWindow);
}
SDL.SDL_SetWindowFullscreen(
INTERNAL_sdlWindow,
INTERNAL_wantsFullscreen ?

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.75336s using 13 queries.