Rev 76 | Rev 106 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 76 | Rev 79 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | extern value_type slider[],cell[],var[],map[][0x100]; |
42 | extern value_type slider[],cell[],var[],map[][0x100]; |
43 | extern unsigned char *image_ptr; |
43 | extern unsigned char *image_ptr; |
44 | 44 | ||
45 | /* Channel z for the input pixel at coordinates x,y. |
45 | /* Channel z for the input pixel at coordinates x,y. |
46 | * Coordinates are relative to the input image data (pb->inData) */ |
46 | * Coordinates are relative to the input image data (pb->inData) */ |
47 | value_type rawsrc(value_type x,value_type y,value_type z){ |
47 | static value_type rawsrc(value_type x,value_type y,value_type z){ |
48 | if(x < gpb->inRect.left) |
48 | if(x < gpb->inRect.left) |
49 | x = gpb->inRect.left; |
49 | x = gpb->inRect.left; |
50 | else if(x >= gpb->inRect.right) |
50 | else if(x >= gpb->inRect.right) |
51 | x = gpb->inRect.right-1; |
51 | x = gpb->inRect.right-1; |
52 | if(y < gpb->inRect.top) |
52 | if(y < gpb->inRect.top) |