On Thu, Feb 04, 2016 at 12:06:57PM +0200, Marius Gedminas wrote: > The 'clearing ... 149 cells' messages in the log prove that this bit of code > > set_cairo_source_rgb_from_pixel(cr, gui.bgcolor->pixel); > cairo_rectangle(cr, > FILL_X(col), FILL_Y(row), > num_cells * gui.char_width, gui.char_height); > cairo_fill(cr); > > was executed, so it remains to be discovered why it didn't clear > anything. Was there an active clipping rectangle? Was bgcolor->pixel > wrong? I'll try to add more debugging printfs().
CODE:
cr = gdk_cairo_create(gtk_widget_get_window(gui.drawarea));
cairo_rectangle(cr, area.x, area.y, area.width, area.height);
cairo_clip(cr);
printf("clip area: %dx%d+%d+%d\n", area.width, area.height, area.x, area.y);
DEBUG OUTPUT:
clip area: 1341x18+2+218
CODE:
printf("clearing (%d,%d): %d cells in %08x\n", row, col,
num_cells, gui.bgcolor->pixel);
set_cairo_source_rgb_from_pixel(cr, gui.bgcolor->pixel);
cairo_set_line_width(cr, 1.0);
cairo_rectangle(cr,
FILL_X(col), FILL_Y(row),
num_cells * gui.char_width, gui.char_height);
printf("cairo_rectangle: %dx%d+%d+%d\n", num_cells * gui.char_width,
gui.char_height, FILL_X(col), FILL_Y(row));
cairo_fill(cr);
DEBUG OUTPUT:
clearing (12,0): 149 cells in 00ffffff
cairo_rectangle: 1341x18+2+218
Everything seems correct, so I've no idea why cairo isn't clearing that
area :(
I've got libcairo 1.14.2-2ubuntu2 from Ubuntu 15.10.
Regards,
Marius Gedminas
--
Any sufficiently advanced bug is indistinguishable from a feature.
-- Rich Kulawiec
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature
