----------------------------------------
> Date: Sun, 10 Oct 2010 18:24:09 +0200
> Subject: Re: [Viking-devel] Uninitialized color value being used
> From: guilhem.bonnefi...@gmail.com
> To: rw_nor...@hotmail.com
> CC: jburgess...@gmail.com; viking-devel@lists.sourceforge.net
>
> I did some changes to take your notices in account. Perhaps can you
> review and test current master branch.
>
> Furthermore, I read some code around and I'm quite surprised by
> vik_viewport_set_background_*color functions. They all seems to treat
> "background" color, but use gdk_gc_set_rgb_fg_color call (related to
> foreground color).
> Any explaination for this? Enventually, adding comment to these
> functions would be nice if this is normal.
> I imagine we are talking about viking's background, but I'm unsure.
>

Viking uses many gc's, thus the viewport it has specific background gc, which 
is what the vik_*background* functions refer to.

There can be only one 'background' overall for the viewport, so I suppose this 
is why it is done this way.

The gdk gc's themselves have foreground and backgrounds, however only the gdk 
gc foreground is ever used (including gc's for trackpoints, ruler stuff, etc...)

HTH.

                                          
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to