Draw the background colour even when it is the clear colour.

(Fixes issue on xlib backend)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27302 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-12-16 08:00:29 +00:00
parent 657bbb61c8
commit e9aba06b34
2 changed files with 8 additions and 2 deletions

View file

@ -953,7 +953,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
PSgsave();
if (_color != nil && [_color alphaComponent] != 0.0)
if (_color != nil)
{
NSRect fillrect = aRect;
@ -1267,7 +1267,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
}
repd->bg = [_color copy];
if (_color != nil && [_color alphaComponent] != 0.0)
if (_color != nil)
{
// Won't be needed when drawRepresentation: gets called,
// but we never know.