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:
Luboš Luňák 2007-12-08 17:58:24 +00:00
parent 0b2a40e150
commit 0a59114c43
2 changed files with 3 additions and 3 deletions

View file

@ -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())
{

View file

@ -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 );
}