Commit 44c0b2da87bb5bb62c010f454df201493f959daf

David Ludwig 2015-12-31T01:54:11

WinRT: minor code-comment cleanups

diff --git a/src/core/winrt/SDL_winrtapp_direct3d.cpp b/src/core/winrt/SDL_winrtapp_direct3d.cpp
index 919edde..1a542fa 100644
--- a/src/core/winrt/SDL_winrtapp_direct3d.cpp
+++ b/src/core/winrt/SDL_winrtapp_direct3d.cpp
@@ -220,11 +220,6 @@ WINRT_ProcessWindowSizeChange() // TODO: Pass an SDL_Window-identifying thing in
 
             const Uint32 latestFlags = WINRT_DetectWindowFlags(window);
             if (latestFlags & SDL_WINDOW_MAXIMIZED) {
-                /* SDL_SendWindowEvent, as of this writing (2015-Dec-27), *won't* actually
-                   send events if the associated flag is already set.  This is taken
-                   advantage of here.  The below call is only meant to send a
-                   window event, if and when it is needed!
-                */
                 SDL_SendWindowEvent(window, SDL_WINDOWEVENT_MAXIMIZED, 0, 0);
             } else {
                 SDL_SendWindowEvent(window, SDL_WINDOWEVENT_RESTORED, 0, 0);
diff --git a/src/video/winrt/SDL_winrtvideo.cpp b/src/video/winrt/SDL_winrtvideo.cpp
index 8dce37c..d1134a5 100644
--- a/src/video/winrt/SDL_winrtvideo.cpp
+++ b/src/video/winrt/SDL_winrtvideo.cpp
@@ -492,6 +492,7 @@ WINRT_DetectWindowFlags(SDL_Window * window)
     return latestFlags;
 }
 
+// TODO, WinRT: consider removing WINRT_UpdateWindowFlags, and just calling WINRT_DetectWindowFlags as-appropriate (with appropriate calls to SDL_SendWindowEvent)
 void
 WINRT_UpdateWindowFlags(SDL_Window * window, Uint32 mask)
 {