All pastes #715728 Raw Edit

Miscellany

public text v1 · immutable
#715728 ·published 2007-09-26 13:02 UTC
rendered paste body
        for( r=0; (r < bitmap->rows) && (r+y < height); r++ )
        {
            for (c=0; (c < bitmap->width) && (c+x < width); c++)
            {
                if( bitmap->buffer[r*bitmap->rows + c] )
                    *((uint32_t*)(picture->data[0] + (x+c)*4 + (y+r)*(picture->linesize[0]))) = 0x000000FF;
            }
        }