Re: GooCanvas : Clipboard copy



On Mon, 2008-12-01 at 12:51 +0100, Dupuit Cyril wrote:

> In the function on_clipboard_copy(), I have created a rectangle painted
> with cairo_set_source_rgb(cr, 1.0, 1.0, 1.0) (as you propose).
> 
> The result is very strange. The background is white and the text too.
> This the result (in attachement).
> 
> The red rectangle contains the text "orld" (in white). The rest of the
> text is lost in the white background.
> 
> What do you think about this color ?

You probably need to set the default color back to black, after clearing
the background, i.e.

 cairo_set_source_rgb(cr, 0.0, 0.0, 0.0);

Damon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]