I really wished the title string length is much much longer than it is currently.
Main Question: Where did DeviceContext get released in the Win32 platform layer?
I ask this question because I'm not sure where ReleaseDC() gets called when I was following along with Casey's Win32 platform layer coding. Upon viewing my own code after following Casey's, I noticed my ReleaseDC(DeviceContext) and GetDC(DeviceContext) calls are not aligned by indents, which means they are in different levels of scope.
GetDC(DeviceContext) is outside of the while(GlobalRunning) loop, and ReleaseDC(DeviceContext) is inside the while(GlobalRunning) loop.
Because of that, I'm having a hard time asking myself if GetDC(DeviceContext) and ReleaseDC(DeviceContext) should be within the while(GlobalRunning) loop, or should they be outside of the while(GlobalRunning) loop?