[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kpdf/annotations/kdegraphics/kpdf/ui (silent)
From: Enrico Ros <rosenric () dei ! unipd ! it>
Date: 2005-07-18 17:12:32
Message-ID: 1121706752.197738.19345.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 435927 by eros:
SVN_SILENT unbreak final compilation
M +6 -6 presentationwidget.cpp
--- branches/kpdf/annotations/kdegraphics/kpdf/ui/presentationwidget.cpp #435926:435927
@@ -583,8 +583,8 @@
}
}
-// from Arthur - Qt4
-inline int qt_div_255(int x) { return (x + (x>>8) + 0x80) >> 8; }
+// from Arthur - Qt4 - (is defined elsewhere as 'qt_div_255' to not break final compilation)
+inline int qt_div255(int x) { return (x + (x>>8) + 0x80) >> 8; }
void PresentationWidget::generateOverlay()
{
#ifdef ENABLE_PROGRESS_OVERLAY
@@ -679,10 +679,10 @@
c2 = shadowAlpha;
// fuse color components and alpha value of image over shadow
data[i] = qRgba(
- cR = qt_div_255( srcAlpha * red + (255 - srcAlpha) * sRed ),
- cG = qt_div_255( srcAlpha * green + (255 - srcAlpha) * sGreen ),
- cB = qt_div_255( srcAlpha * blue + (255 - srcAlpha) * sBlue ),
- cA = qt_div_255( srcAlpha * srcAlpha + (255 - srcAlpha) * shadowAlpha )
+ cR = qt_div255( srcAlpha * red + (255 - srcAlpha) * sRed ),
+ cG = qt_div255( srcAlpha * green + (255 - srcAlpha) * sGreen ),
+ cB = qt_div255( srcAlpha * blue + (255 - srcAlpha) * sBlue ),
+ cA = qt_div255( srcAlpha * srcAlpha + (255 - srcAlpha) * shadowAlpha )
);
}
else
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic