Skip to content

Commit

Permalink
Remove a FIXME from SDL2_FNAPlatform.
Browse files Browse the repository at this point in the history
I'm not really convinced this was ever a bug anymore...
  • Loading branch information
flibitijibibo committed Jul 17, 2022
1 parent 62cbf1c commit 700a6f0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/FNAPlatform/SDL2_FNAPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -572,13 +572,7 @@ public static Rectangle GetWindowBounds(IntPtr window)
Rectangle result;
if ((SDL.SDL_GetWindowFlags(window) & (uint) SDL.SDL_WindowFlags.SDL_WINDOW_FULLSCREEN) != 0)
{
/* FIXME: SDL2 bug!
* SDL's a little weird about SDL_GetWindowSize.
* If you call it early enough (for example,
* Game.Initialize()), it reports outdated ints.
* So you know what, let's just use this.
* -flibit
*/
/* It's easier/safer to just use the display mode here */
SDL.SDL_DisplayMode mode;
SDL.SDL_GetCurrentDisplayMode(
SDL.SDL_GetWindowDisplayIndex(
Expand Down

0 comments on commit 700a6f0

Please sign in to comment.