[vlc-commits] [Git][videolan/vlc][3.0.x] wingdi: use a better stretch mode

Steve Lhomme (@robUx4) gitlab at videolan.org
Sat Aug 2 12:09:36 UTC 2025



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
dc886994 by Steve Lhomme at 2025-08-02T11:46:45+00:00
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.

(cherry picked from commit 622389c9)

- - - - -


1 changed file:

- modules/video_output/win32/wingdi.c


Changes:

=====================================
modules/video_output/win32/wingdi.c
=====================================
@@ -164,6 +164,8 @@ static void Display(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
         rect_src_clipped.right - rect_src_clipped.left ||
         rect_dest_clipped.bottom - rect_dest_clipped.top !=
         rect_src_clipped.bottom - rect_src_clipped.top) {
+        SetStretchBltMode(hdc, COLORONCOLOR);
+
         StretchBlt(hdc, rect_dst.left, rect_dst.top,
                    rect_dst.right, rect_dst.bottom,
                    sys->off_dc,



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dc88699432b582b0d4193d0abd46c7cdca3a5616

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dc88699432b582b0d4193d0abd46c7cdca3a5616
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list