-Fix a few compiler warnings for PNG screenshots and optimize a bit.

git-svn-id: http://odamex.net/svn/root/trunk@4599 b0bcef46-2027-0410-bd56-ab726e9a1d04