Gfx::doTilingPatternFill: Fix undefined behaviour

oss-fuzz/8548
1 file changed