Kaydet (Commit) 859b7b09 authored tarafından Pranav Kant's avatar Pranav Kant Kaydeden (comit) pranavk

lokdialog: debug red-colored boundary for last painted region

Easier to see what's going on inside the LOK dialog.

Change-Id: I59974200af3d2356b7c27eb3dd4032a59c00dbed
Reviewed-on: https://gerrit.libreoffice.org/51263Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarpranavk <pranavk@collabora.co.uk>
üst ae11dec7
...@@ -117,7 +117,13 @@ gtv_lok_dialog_draw(GtkWidget* pDialogDrawingArea, cairo_t* pCairo, gpointer) ...@@ -117,7 +117,13 @@ gtv_lok_dialog_draw(GtkWidget* pDialogDrawingArea, cairo_t* pCairo, gpointer)
cairo_surface_mark_dirty(pSurface); cairo_surface_mark_dirty(pSurface);
cairo_set_source_surface(pCairo, pSurface, aRect.x, aRect.y); cairo_set_source_surface(pCairo, pSurface, aRect.x, aRect.y);
// paint the dialog image
cairo_paint(pCairo); cairo_paint(pCairo);
// debug red-colored border around the painted region
cairo_set_source_rgb(pCairo, 1.0, 0, 0);
cairo_rectangle(pCairo, aRect.x, aRect.y, nWidth, nHeight);
cairo_stroke(pCairo);
} }
static gboolean static gboolean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment