summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl
diff options
context:
space:
mode:
author Ryan Holtz <rholtz@batcountryentertainment.com>2011-06-02 06:22:09 +0000
committer Ryan Holtz <rholtz@batcountryentertainment.com>2011-06-02 06:22:09 +0000
commit844296b795882294f8242ff8eafe2e3bb49b2c10 (patch)
treeea78bc40c1d95bfbd58448f3490684f252d9da66 /hlsl
parent6a52f841ebc446cbed863bc96f14ccb5a89b4627 (diff)
Split HLSL code into a separate file, d3dhlsl.c/.h. Also split drawd3d.c into a couple of headers. [Ryan Holtz, Bat Country Entertainment]
Diffstat (limited to 'hlsl')
-rw-r--r--hlsl/yiq_decode.fx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hlsl/yiq_decode.fx b/hlsl/yiq_decode.fx
index 346f316464f..c25d9d5405c 100644
--- a/hlsl/yiq_decode.fx
+++ b/hlsl/yiq_decode.fx
@@ -122,7 +122,7 @@ float4 ps_main(PS_INPUT Input) : COLOR
float4 CoordX = Input.Coord0.x + Input.Coord0.z * n4 * 0.25f;
float4 CoordY = Input.Coord0.y;
float2 TexCoord = float2(CoordX.r, CoordY.r);
- float4 C = tex2D(CompositeSampler, TexCoord) * CRange + MinC;
+ float4 C = tex2D(CompositeSampler, TexCoord + float2(0.125f, 0.0f) / RawDims) * CRange + MinC;
float4 WT = W * (CoordX * WidthRatio + AValue * CoordY * 2.0f * (RawHeight / HeightRatio) + BValue) + OValue;
float4 SincYIn = PI2 * Fc_y * n4;