Rev 3068 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3068 | Rev 3248 | ||
---|---|---|---|
Line 95... | Line 95... | ||
95 | mutex_unlock(&q->lock); |
95 | mutex_unlock(&q->lock); |
Line 96... | Line 96... | ||
96 | 96 | ||
97 | return ret; |
97 | return ret; |
- | 98 | } |
|
- | 99 | ||
- | 100 | void blit_raw(ctx_t *ctx, void *raw, int x, int y, int w, int h, int pitch) |
|
- | 101 | { |
|
- | 102 | int *dst = (int*)ctx->pixmap->data; |
|
- | 103 | int *src = raw; |
|
- | 104 | int i, j; |
|
- | 105 | ||
- | 106 | dst+= y * ctx->pixmap->pitch/4 + x; |
|
- | 107 | ||
- | 108 | ||
- | 109 | for(i=0; i < h; i++) |
|
- | 110 | { |
|
- | 111 | for(j = 0; j < w; j++) |
|
- | 112 | dst[j] = src[j]; |
|
- | 113 | dst+= ctx->pixmap->pitch/4; |
|
- | 114 | src+= pitch/4; |
|
- | 115 | }; |