diff --git a/ba/ba8300b.uml b/ba/ba8300b.uml index badfd1fa7..81dd58c5e 100755 --- a/ba/ba8300b.uml +++ b/ba/ba8300b.uml @@ -135,7 +135,7 @@ BEGIN PROMPT 2 5 "Colore ~Sfondo" END -LIST F_BORDER 1 12 +LIST F_BORDER 2 15 BEGIN PROMPT 2 7 "Bordo " ITEM "0|Nessuno" @@ -143,6 +143,8 @@ BEGIN ITEM "2|Normale" ITEM "3|Spesso" ITEM "4|Molto spesso" + ITEM "7|1/12 pollice" + ITEM "13|1/6 pollice" END STRING F_RADIUS 4 diff --git a/ba/ba8301.cpp b/ba/ba8301.cpp index 09609afb2..3a44f9cf5 100755 --- a/ba/ba8301.cpp +++ b/ba/ba8301.cpp @@ -1526,7 +1526,13 @@ bool TReport_window::advanced_set_draw_tools(PAT_STYLE pat, int border, COLOR fo if (visible) { if (has_pen) - set_pen(fore, border, PAT_SOLID); + { + const int pollici720 = border <= 1 ? 5 : (border-1)*10; // Spessore in 1/720 di pollice + const double thickness = pollici720 * _dpi.h / 720.0; // Spessore in pixel + if (thickness < 1.0) + fore = blend_colors(fore, COLOR_WHITE, thickness); + set_pen(fore, int(thickness+0.5), PAT_SOLID); + } else hide_pen(); if (has_brush)