This should fix one of the remaining crashes while drawing. The issue was that we would try to write to an out-of-bounds memory location. This fixes the issue and also cleans up the code a bit more, adding more comments and using better names.
This should fix one of the remaining crashes while drawing. The issue was that we would try to write to an out-of-bounds memory location. This fixes the issue and also cleans up the code a bit more, adding more comments and using better names.