I have draw a line which can have any orientation in 2D. When I have moved it how can I redraw the line without redrawing a large proportion of the screen.
Currently I am using CRect (left top right bottom), by finding the center of the line using differences in x and y, and then from the center point I am using the x and y differences to redraw a large rectangle :sad:.
Also I am trying to stop flickering but haven't found code to do as it says it should.
Any help is much appreciated. Thanks.