Adding drawLine() to Surface
|Reported by:||eriktorbjorn||Owned by:||fingolfin|
This adds drawLine() to the Surface class like sev
suggested. I'm not committing it myself - not right
away at least - because:
I'm not sure about this "const" stuff. I finally got
the thing to compile by using const_cast, but I don't
know why I had to, and I don't know if it's right.
I'm not completely happy with the naming. It seems
wrong to have hLine(), vLine() and drawLine() because
in the first two the word "draw" is only implied. But I
don't want to call it just "line" either.
Ticket imported from: #1193795. Ticket imported from: patches/533.