[vlc-commits] [Git][videolan/vlc][3.0.x] d3d_shaders: fix placement with 270° rotation

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Thu Aug 10 07:00:29 UTC 2023



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
8b622fc0 by Steve Lhomme at 2023-08-10T07:22:40+02:00
d3d_shaders: fix placement with 270° rotation

We should not subtract width and height values.

Fixes #27976

(cherry picked from commit 4cd819e2389b5ad1389f401f0e39825c65c13abd) (edited)

edited:
- SetupQuadFlat is in d3d11_quad on 3.0

- - - - -


1 changed file:

- modules/video_output/win32/d3d11_quad.c


Changes:

=====================================
modules/video_output/win32/d3d11_quad.c
=====================================
@@ -269,7 +269,7 @@ static void SetupQuadFlat(d3d_vertex_t *dst_data, const RECT *output,
         top    =  (src_width  - MidX) / (output->right - MidX);
         bottom = -MidY / (MidY - output->top);
         left   = -MidX / (MidX - output->left);
-        right  =  (src_height - MidY) / (output->bottom - MidY);
+        right  =  (src_height - MidX) / (output->bottom - MidX);
         break;
     case ORIENT_ANTI_TRANSPOSED:
         MidY = (output->left + output->right) / 2.f;



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8b622fc01f610d88e834ba060e4aba6a3b13c4d3
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