[beryl-commits] Reflection plugin: Changes to 'master' (4624c4ca44ac1ac83fc2ec821b140dc851104d17)
cornelius at server.beryl-project.org
cornelius at server.beryl-project.org
Wed Jun 13 07:42:48 CEST 2007
New commits:
commit 4624c4ca44ac1ac83fc2ec821b140dc851104d17
Author: Erkin Bahceci <erkinbah at gmail.com>
Date: Wed Jun 13 01:42:16 2007 -0400
Fix image shifting when moving window.
reflex.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: compcomm/plugins/reflex/reflex.c
===================================================================
--- compcomm/plugins/reflex/reflex.c
+++ compcomm/plugins/reflex/reflex.c
@@ -112,6 +112,7 @@ getReflexFragmentFunction (CompScreen * s, CompTexture * texture,
ok &= addFetchOpToFunctionData (data, "output", NULL, target);
ok &= addColorOpToFunctionData (data, "output", "output");
+ // coord <-- (pos + d) * t = pos * t + d * t
snprintf (str, 1024,
"MAD coord, fragment.position, program.env[%d],"
" program.env[%d];", param, param + 1);
@@ -223,7 +224,7 @@ reflexDrawWindowTexture (CompWindow * w,
(*s->programEnvParameter4f) (GL_FRAGMENT_PROGRAM_ARB, param,
tx, ty, 0.0f, 0.0f);
(*s->programEnvParameter4f) (GL_FRAGMENT_PROGRAM_ARB, param + 1,
- dx, 0.0f, 0.0f, 0.0f);
+ dx * tx, 0.0f, 0.0f, 0.0f);
(*s->programEnvParameter4f) (GL_FRAGMENT_PROGRAM_ARB, param + 2,
reflexGetThreshold (s), 0.0f, 0.0f,
0.0f);
More information about the commits
mailing list