mirror of
https://github.com/game-stop/veejay.git
synced 2026-01-05 22:45:30 +01:00
git-svn-id: svn://code.dyne.org/veejay/trunk@105 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
@@ -104,6 +104,7 @@ void lumamask_apply( VJFrame *frame, VJFrame *frame2, int width,
|
||||
ny = y + dy;
|
||||
if(nx < 0) nx+=width;
|
||||
if(nx < 0) nx = 0; else if (nx > width) nx = width;
|
||||
if(ny < 0) ny+=height;
|
||||
if(ny < 0) ny = 0; else if (ny >= height) ny = height-1;
|
||||
// put pixels from local copy
|
||||
Y[y*width+x] = buf[0][ny * width + x];
|
||||
|
||||
Reference in New Issue
Block a user