Restore code to set the default color text, which is used in .vik files
---
src/vikviewport.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/vikviewport.c b/src/vikviewport.c
index 4a57539..6e67dda 100644
--- a/src/vikviewport.c
+++ b/src/vikviewport.c
@@ -292,9 +292,10 @@ gboolean vik_viewport_configure ( VikViewport *vvp )
/* TODO trigger */
/* this is down here so it can get a GC (necessary?) */
- if ( ! vvp->background_gc )
+ if ( !vvp->background_gc )
{
vvp->background_gc = vik_viewport_new_gc ( vvp, DEFAULT_BACKGROUND_COLOR,
1 );
+ vik_viewport_set_background_color ( vvp, DEFAULT_BACKGROUND_COLOR );
}
if ( !vvp->scale_bg_gc) {
vvp->scale_bg_gc = vik_viewport_new_gc(vvp, "grey", 3);
--
1.7.2.3
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Viking-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/