started decompile of paint quadrant function