mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Merge pull request #1263 from marsej/SDL-init-white-bg-to-black
Changed SDL initial bg color from white to black to remove white flas…
This commit is contained in:
commit
670fc4fe75
1 changed files with 4 additions and 2 deletions
|
@ -117,7 +117,7 @@ namespace SDL2
|
|||
SDL.EventState(.JoyDeviceAdded, .Disable);
|
||||
SDL.EventState(.JoyDeviceRemoved, .Disable);
|
||||
|
||||
mWindow = SDL.CreateWindow(mTitle, .Undefined, .Undefined, mWidth, mHeight, .Shown);
|
||||
mWindow = SDL.CreateWindow(mTitle, .Undefined, .Undefined, mWidth, mHeight, .Hidden); // Initially hide window
|
||||
mRenderer = SDL.CreateRenderer(mWindow, -1, .Accelerated);
|
||||
mScreen = SDL.GetWindowSurface(mWindow);
|
||||
SDLImage.Init(.PNG | .JPG);
|
||||
|
@ -247,6 +247,8 @@ namespace SDL2
|
|||
{
|
||||
// Initial render
|
||||
Render();
|
||||
// Show initially hidden window, mitigates white flash on slow startups
|
||||
SDL.ShowWindow(mWindow);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue