PDF/XPS: don't draw entire tiles if only a very small part of them are needed (fixes issue 2248)
fix another case of warning C4238