mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +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
|
@ -1,3 +1,12 @@
|
|||
2010-01-23 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2010-01-23 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSMenuView.m: For horizontal menus, treat clicking in the
|
||||
|
|
|
@ -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…
Reference in a new issue