diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2009-02-06 01:57:50 +0300 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2009-02-06 01:57:50 +0300 |
commit | c5d0195d42df18333bcb48917ee3e25f4318c946 (patch) | |
tree | 4f1878e41ae8aac731d1ef281b3f5d342870710f /src/apps/mplayerc/res | |
parent | 32903ef58766f04e6c12047f11c06d1d7c7c2eaa (diff) |
revert "16-235 -> 0-255 [SD]" shader
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@990 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/res')
-rw-r--r-- | src/apps/mplayerc/res/shaders/levels2.psh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/apps/mplayerc/res/shaders/levels2.psh b/src/apps/mplayerc/res/shaders/levels2.psh index 073660761..6574faa14 100644 --- a/src/apps/mplayerc/res/shaders/levels2.psh +++ b/src/apps/mplayerc/res/shaders/levels2.psh @@ -1,8 +1,8 @@ sampler s0 : register(s0);
float4 p0 : register(c0);
-//#define height (p0[1])
-#define width (p0[0])
+#define height (p0[1])
+//#define width (p0[0])
#define const_1 (16.0/255.0)
#define const_2 (255.0/219.0)
@@ -12,8 +12,8 @@ float4 main(float2 tex : TEXCOORD0) : COLOR // original pixel
float4 c0 = tex2D(s0,tex);
- //if(height > 719 ) {
- if(width > 1279) {
+ if(height > 719 ) {
+ //if(width > 1279) {
return c0;
} else {
return((c0 - const_1) * const_2);
|