Loobinex / keeperfx-unofficial

KeeperFX - Unofficial release
60 stars 7 forks source link

Destroy less windows - fix for windowed mode #201

Closed eddebaby closed 4 years ago

eddebaby commented 4 years ago

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.

Loobinex commented 4 years ago

You introduced a new warning: image

Loobinex commented 4 years ago

That did not fix it: image

eddebaby commented 4 years ago

Sorry, I didn't actually check my bad.

Loobinex commented 4 years ago

This does it.