Windows of the same size were still being destroyed/recreated when using windowed mode. As SDL windowed mode has a flag of 0, this was getting missed by the check I added. This is now caught correctly by the check, and the check is reorganised, so as to be easier to read.
A fix for my "Destroy less windows" pull request.
Windows of the same size were still being destroyed/recreated when using windowed mode. As SDL windowed mode has a flag of 0, this was getting missed by the check I added. This is now caught correctly by the check, and the check is reorganised, so as to be easier to read.