Subversion Repositories freemyipod

Rev

Rev 504 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 504 Rev 509
Line 115... Line 115...
115
    char* out = (char*)outbuf + (outx + outy * outstride) * pixelbytes;
115
    char* out = (char*)outbuf + (outx + outy * outstride) * pixelbytes;
116
    int rowsize = width * pixelbytes;
116
    int rowsize = width * pixelbytes;
117
    while (height--)
117
    while (height--)
118
    {
118
    {
119
        memcpy(out, in, rowsize);
119
        memcpy(out, in, rowsize);
120
        in += (instride - width) * pixelbytes;
120
        in += instride * pixelbytes;
121
        out += (outstride - width) * pixelbytes;
121
        out += outstride * pixelbytes;
122
    }
122
    }
123
}
123
}
124
 
124
 
125
void fill(int width, int height, uint32_t color,
125
void fill(int width, int height, uint32_t color,
126
          void* buf, int outx, int outy, int stride)
126
          void* buf, int outx, int outy, int stride)