aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/Surface_Win32.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-02-10 16:37:52 +0100
committerPierre Ossman <ossman@cendio.se>2017-02-10 17:05:22 +0100
commit455566e8b5b2ea5bd78350769eb2d62279cc0dc6 (patch)
tree565642fe2f474b046fe0aeb2d3a50e3211fabac1 /vncviewer/Surface_Win32.cxx
parent4f0647da6a044f4d82d312a11ea8755d1aa7b63d (diff)
downloadtigervnc-455566e8b5b2ea5bd78350769eb2d62279cc0dc6.tar.gz
tigervnc-455566e8b5b2ea5bd78350769eb2d62279cc0dc6.zip
Fade overlay in and out
Diffstat (limited to 'vncviewer/Surface_Win32.cxx')
-rw-r--r--vncviewer/Surface_Win32.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vncviewer/Surface_Win32.cxx b/vncviewer/Surface_Win32.cxx
index 87b0cb2f..9400f536 100644
--- a/vncviewer/Surface_Win32.cxx
+++ b/vncviewer/Surface_Win32.cxx
@@ -89,13 +89,13 @@ void Surface::draw(Surface* dst, int src_x, int src_y, int x, int y, int w, int
DeleteDC(dstdc);
}
-void Surface::blend(int src_x, int src_y, int x, int y, int w, int h)
+void Surface::blend(int src_x, int src_y, int x, int y, int w, int h, int a)
{
// Compositing doesn't work properly for window DC:s
assert(false);
}
-void Surface::blend(Surface* dst, int src_x, int src_y, int x, int y, int w, int h)
+void Surface::blend(Surface* dst, int src_x, int src_y, int x, int y, int w, int h, int a)
{
HDC dstdc, srcdc;
BLENDFUNCTION blend;
@@ -114,7 +114,7 @@ void Surface::blend(Surface* dst, int src_x, int src_y, int x, int y, int w, int
blend.BlendOp = AC_SRC_OVER;
blend.BlendFlags = 0;
- blend.SourceConstantAlpha = 255;
+ blend.SourceConstantAlpha = a;
blend.AlphaFormat = AC_SRC_ALPHA;
if (!AlphaBlend(dstdc, x, y, w, h, srcdc, src_x, src_y, w, h, blend)) {