summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/yiq_encode.fx
diff options
context:
space:
mode:
author Ryan Holtz <rholtz@batcountryentertainment.com>2013-08-30 01:05:13 +0000
committer Ryan Holtz <rholtz@batcountryentertainment.com>2013-08-30 01:05:13 +0000
commit8f613c115bfef732fe63bc58bd992a8e56c3d934 (patch)
treefec1f0765d3c8e3a0a4d55ebcf43cc69d2a17b2b /hlsl/yiq_encode.fx
parent1e764f2c8d04a9c086808333abb278b6b3d42688 (diff)
more HLSL cleanup, part e of pi (nw)
Diffstat (limited to 'hlsl/yiq_encode.fx')
-rw-r--r--hlsl/yiq_encode.fx4
1 files changed, 2 insertions, 2 deletions
diff --git a/hlsl/yiq_encode.fx b/hlsl/yiq_encode.fx
index f87141d689b..ffd4a8cb727 100644
--- a/hlsl/yiq_encode.fx
+++ b/hlsl/yiq_encode.fx
@@ -103,8 +103,8 @@ float4 ps_main(PS_INPUT Input) : COLOR
float4 Q = float4(dot(Texel0, QDot), dot(Texel1, QDot), dot(Texel2, QDot), dot(Texel3, QDot));
float4 W = PI2 * CCValue * ScanTime;
- float4 VPosition = (CoordY / SourceRect.y) * (SourceDims.x * SourceRect.x);
- float4 T = CoordX * SourceRect.x + VPosition + BValue;
+ float4 VPosition = (CoordY * SourceRect.y) * (SourceDims.x / SourceRect.x);
+ float4 T = CoordX / SourceRect.x + VPosition + BValue;
float4 C = Y + I * cos(T * W) + Q * sin(T * W);
C = (C - MinC) / CRange;