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

@ -1,3 +1,9 @@
2008-12-16 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSImage.m (-drawRepresentation:inRect:,
-lockFocusOnRepresentation:): Draw the background colour even when
it is the clear colour. (Fixes issue on xlib backend)
2008-12-15 21:29-EST Gregory John Casamento <greg_casamento@yahoo.com> 2008-12-15 21:29-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Images/common_ToolbarCustomizeToolbarItem.tiff * Images/common_ToolbarCustomizeToolbarItem.tiff

View file

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