I suppose black looks better on places where there's nothing at all.
svn path=/trunk/KDE/kdebase/workspace/; revision=746328
This commit is contained in:
parent
0b2a40e150
commit
0a59114c43
2 changed files with 3 additions and 3 deletions
|
@ -690,12 +690,12 @@ void SceneOpenGL::paintBackground( QRegion region )
|
|||
{
|
||||
if( region == infiniteRegion())
|
||||
{
|
||||
glClearColor( 1, 1, 1, 1 ); // white
|
||||
glClearColor( 0, 0, 0, 1 ); // black
|
||||
glClear( GL_COLOR_BUFFER_BIT );
|
||||
}
|
||||
else
|
||||
{
|
||||
glColor4f( 1, 1, 1, 1 ); // white
|
||||
glColor4f( 0, 0, 0, 1 ); // black
|
||||
glBegin( GL_QUADS );
|
||||
foreach( QRect r, region.rects())
|
||||
{
|
||||
|
|
|
@ -271,7 +271,7 @@ void SceneXrender::paintBackground( QRegion region )
|
|||
XFixesSetPictureClipRegion( display(), buffer, 0, 0, background_region );
|
||||
XFixesDestroyRegion( display(), background_region );
|
||||
}
|
||||
XRenderColor col = { 0xffff, 0xffff, 0xffff, 0xffff };
|
||||
XRenderColor col = { 0, 0, 0, 0xffff }; // black
|
||||
XRenderFillRectangle( display(), PictOpSrc, buffer, &col, 0, 0, displayWidth(), displayHeight());
|
||||
XFixesSetPictureClipRegion( display(), buffer, 0, 0, None );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue