renderer: Fix a division-by-zero
We need to check if height is zero before dividing by it. For completeness, check width at the same time.
This was pointed out in !167 (closed)
We need to check if height is zero before dividing by it. For completeness, check width at the same time.
This was pointed out in !167 (closed)