[vlc-commits] wingdi: use a better stretch mode

Steve Lhomme git at videolan.org
Fri May 3 14:50:32 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Apr 17 14:31:42 2019 +0200| [622389c9d0cbbe8e2a1f10310294cbb64c8d6f1b] | committer: Steve Lhomme

wingdi: use a better stretch mode

This gives a much better picture quality.

If the call fails (COLORONCOLOR not supported) this has no effect and the old
ugly stretch mode is used.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=622389c9d0cbbe8e2a1f10310294cbb64c8d6f1b
---

 modules/video_output/win32/wingdi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/win32/wingdi.c b/modules/video_output/win32/wingdi.c
index 81f42af8f5..7f387c9d24 100644
--- a/modules/video_output/win32/wingdi.c
+++ b/modules/video_output/win32/wingdi.c
@@ -170,6 +170,8 @@ static void Display(vout_display_t *vd, picture_t *picture)
 
     if (sys->area.place.width  != vd->source.i_visible_width ||
         sys->area.place.height != vd->source.i_visible_height) {
+        SetStretchBltMode(hdc, COLORONCOLOR);
+
         StretchBlt(hdc, sys->area.place.x, sys->area.place.y,
                    sys->area.place.width, sys->area.place.height,
                    sys->off_dc,



More information about the vlc-commits mailing list