search for: save_coords

Displaying 1 result from an estimated 1 matches for "save_coords".

2007 Oct 02
0
[ wxruby-Patches-14375 ] bigdemo/wxScrolledWindow - paint bug with scrolled window
...ST GREEN", 4, Wx::SOLID)) coords = [@x, @y] + convert_event_coords(event) @curLine.push(coords) coords.flatten!() dc.draw_line(coords[0], coords[1], coords[2], coords[3]) set_XY(event) end To: paint do | dc | dc.set_pen(Wx::Pen.new("MEDIUM FOREST GREEN", 4, Wx::SOLID)) save_coords = [@x, @y] + convert_event_coords(event) # translate the absolute coords to save them in the array coords = [@event_x_old, @event_y_old, event.get_x, event.get_y] # the absolute coords to use for the first draw @curLine.push(save_coords) # use...