Subversion Repositories Kolibri OS

Rev

Rev 5021 | Rev 5603 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5021 Rev 5372
Line 98... Line 98...
98
}
98
}
99
 
99
 
Line 100... Line 100...
100
void blit_raw(ctx_t *ctx, void *raw, int x, int y, int w, int h, int pitch)
100
void blit_raw(ctx_t *ctx, void *raw, int x, int y, int w, int h, int pitch)
101
{
101
{
102
    int *dst = (int*)ctx->pixmap->data;
102
    int *dst;
103
    int *src = raw;
103
    int *src = raw;
104
    int i, j;
104
    int i, j;
Line -... Line 105...
-
 
105
 
105
 
106
    dst = ctx->pixmap_data;
106
    dst+=  y * ctx->pixmap->pitch/4 + x;
-
 
Line 107... Line 107...
107
 
107
    dst+=  y * ctx->pixmap_pitch/4 + x;
108
 
108
 
109
    for(i=0; i < h; i++)
109
    for(i=0; i < h; i++)
110
    {
110
    {
111
        for(j = 0; j < w; j++)
111
        for(j = 0; j < w; j++)
112
            dst[j] = src[j];
112
            dst[j] = src[j];
113
        dst+= ctx->pixmap->pitch/4;
113
        dst+= ctx->pixmap_pitch/4;
114
        src+= pitch/4;
114
        src+= pitch/4;