Minor SDL window fixes.

Fix issue #1426 and #1425.

(admin edit: point to the correct pair of issues - Soron)