"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gb.gtk/src/cpaint_impl.cpp" between
gambas-3.16.2.tar.bz2 and gambas-3.16.3.tar.bz2

About: Gambas is a graphical development environment based on a Basic interpreter with object extensions, a bit like Visual Basic (requires Qt).

cpaint_impl.cpp  (gambas-3.16.2.tar.bz2):cpaint_impl.cpp  (gambas-3.16.3.tar.bz2)
skipping to change at line 1110 skipping to change at line 1110
GB_PAINT_EXTRA *dx = EXTRA(d); GB_PAINT_EXTRA *dx = EXTRA(d);
char *html = NULL; char *html = NULL;
PangoLayout *layout; PangoLayout *layout;
PangoRectangle rect; PangoRectangle rect;
float x, y; float x, y;
layout = create_pango_layout(d); layout = create_pango_layout(d);
if (rich) if (rich)
{ {
html = gt_html_to_pango_string(text, len, false); pango_layout_set_text(layout, "", 0);
pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR); pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR);
html = gt_html_to_pango_string(text, len, false);
pango_layout_set_markup(layout, html, -1); pango_layout_set_markup(layout, html, -1);
} }
else else
{
pango_layout_set_markup(layout, "", 0);
pango_layout_set_text(layout, text, len); pango_layout_set_text(layout, text, len);
}
update_layout(d);
//gt_add_layout_from_font(layout, dx->font, d->resolutionY);
if (width > 0) if (width > 0)
pango_layout_set_width(layout, width * PANGO_SCALE); pango_layout_set_width(layout, width * PANGO_SCALE);
else
pango_layout_set_width(layout, -1);
update_layout(d);
//gt_add_layout_from_font(layout, dx->font, d->resolutionY);
pango_layout_get_extents(layout, &rect, NULL); pango_layout_get_extents(layout, &rect, NULL);
GetCurrentPoint(d, &x, &y); GetCurrentPoint(d, &x, &y);
ext->x1 = (float)rect.x / PANGO_SCALE + x; ext->x1 = (float)rect.x / PANGO_SCALE + x;
ext->y1 = (float)rect.y / PANGO_SCALE + y - dx->ascent; ext->y1 = (float)rect.y / PANGO_SCALE + y - dx->ascent;
ext->x2 = ext->x1 + (float)rect.width / PANGO_SCALE; ext->x2 = ext->x1 + (float)rect.width / PANGO_SCALE;
ext->y2 = ext->y1 + (float)rect.height / PANGO_SCALE; ext->y2 = ext->y1 + (float)rect.height / PANGO_SCALE;
 End of changes. 5 change blocks. 
4 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)