ebassi / graphene

A thin layer of graphic data types
http://ebassi.github.io/graphene
Other
373 stars 80 forks source link

Normalize input rectangles just once #176

Closed ebassi closed 4 years ago

ebassi commented 4 years ago

If we're calling accessors functions on the same graphene_rect_t multiple times, we end up normalizing the same rectangle. Let's do this once at the start, and call the accessors on the normalized rectangle to avoid tripping the normalization code paths.