diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-06-24 02:26:17 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-06-24 02:26:17 +0000 |
| commit | 7ce57ae277bbc31d3636a84e1f7a59c8bf2fca2c (patch) | |
| tree | 2db0b017416d1eac2a77b10a0ab6084fdf514223 /src/display/sodipodi-ctrl.cpp | |
| parent | delivarotify (diff) | |
| download | inkscape-7ce57ae277bbc31d3636a84e1f7a59c8bf2fca2c.tar.gz inkscape-7ce57ae277bbc31d3636a84e1f7a59c8bf2fca2c.zip | |
update for 32 instead of 24 bpp canvas buf
(bzr r6041)
Diffstat (limited to 'src/display/sodipodi-ctrl.cpp')
| -rw-r--r-- | src/display/sodipodi-ctrl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/display/sodipodi-ctrl.cpp b/src/display/sodipodi-ctrl.cpp index 0172cc8bb..db199d3a5 100644 --- a/src/display/sodipodi-ctrl.cpp +++ b/src/display/sodipodi-ctrl.cpp @@ -512,7 +512,7 @@ sp_ctrl_render (SPCanvasItem *item, SPCanvasBuf *buf) bool colormode; for (y = y0; y <= y1; y++) { - p = buf->buf + (y - buf->rect.y0) * buf->buf_rowstride + (x0 - buf->rect.x0) * 3; + p = buf->buf + (y - buf->rect.y0) * buf->buf_rowstride + (x0 - buf->rect.x0) * 4; q = ctrl->cache + ((y - ctrl->box.y0) * (ctrl->span*2+1) + (x0 - ctrl->box.x0)) * 4; for (x = x0; x <= x1; x++) { a = *(q + 3); @@ -527,13 +527,13 @@ sp_ctrl_render (SPCanvasItem *item, SPCanvasBuf *buf) p[1] = COMPOSE_N (p[1], q[1], a); p[2] = COMPOSE_N (p[2], q[2], a); q += 4; - p += 3; + p += 4; } else if (ctrl->mode == SP_CTRL_MODE_XOR) { p[0] = COMPOSE_X (p[0], q[0], a); p[1] = COMPOSE_X (p[1], q[1], a); p[2] = COMPOSE_X (p[2], q[2], a); q += 4; - p += 3; + p += 4; } } } |
