mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 05:20:38 +00:00
* Source/GSWindowDecorationView.m: In drawRect:, clear the window
background before getting the theme to draw its background. This makes windows with semitransparent background colors work properly. NOTE: While the clear operation is very fast, we may want to only do it if the window background colour has an alpha value of < 1. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29376 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
07f8682baf
commit
3497c38603
2 changed files with 12 additions and 0 deletions
|
@ -355,6 +355,9 @@
|
|||
{
|
||||
if (NSIntersectsRect(rect, contentRect))
|
||||
{
|
||||
// Since this is the outermost view, we have to clear the contentRect
|
||||
// in case the theme's window background is not opaque.
|
||||
NSRectFillUsingOperation(contentRect, NSCompositeClear);
|
||||
[[GSTheme theme] drawWindowBackground: contentRect view: self];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue