Improve BlitBitmapWithMask: When a bitmap was blitted near the border
of the screen, the function would shift it a bit to blit it entirely inside
the screen. Now it blits only the visible part. Actually the calculation
is still wrong for some reason.
FillPolygon() wasn't taking into account the last edge, since the last point
doesn't close the polygon.
Remove debug couts