Skip to content
  • Matthias Clasen's avatar
    roundedrect: Speed up contains_rect and friends · f8f2f294
    Matthias Clasen authored
    gsk_rounded_rect_contains_rect was calling
    gsk_rounded_rect_contains_point, which potentially
    checks all four corners, for a total of up to 16
    corner/point checks. But there is no need to do
    more than 4 such checks to answer the question.
    f8f2f294