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
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to