how to draw with fore-and background



hi,
can somebody tell me how to draw a rectangle on a pixmap
with only one graphic context (gc) and the functions ...
gdk_gc_set_foreground (gc, &blue);
gdk_gc_set_background (gc, &red);
the colors blue and red i have allocated in a colormap thats not the probl.
but when i draw with gdk_draw_rectangle(pixmap, gc, TRUE, x, y, 50, 50);
i only had a filled red rectangle on the screen. why this is so?
please help me. thankx Ben

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner



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