PintaProject / Pinta

Simple GTK# Paint Program
http://www.pinta-project.com/
MIT License
1.74k stars 267 forks source link

Refactored `Ruler` to minimize variable reassignment #848

Closed Lehonti closed 4 weeks ago

Lehonti commented 4 weeks ago

I also want to refactor the Cairo part, but I need to get a bit more familiar with the intent behind each part and with how Cairo manages its internal state.

When it's refactored right, creating tests for the visual output of this (so that we can test that the ruler is being drawn correctly) should be possible :)