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

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Wed Aug 9 21:10:27 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
4cd819e2 by Steve Lhomme at 2023-08-09T20:56:53+00:00
d3d_shaders: fix placement with 270° rotation

We should not subtract width and height values.

Fixes #27976

- - - - -


1 changed file:

- modules/video_output/win32/d3d_shaders.c


Changes:

=====================================
modules/video_output/win32/d3d_shaders.c
=====================================
@@ -693,7 +693,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 TRANSFORM_ANTI_TRANSPOSE:
         MidY = (output->left + output->right) / 2.f;



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

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