Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Painter DrawLineStroke proposal
Painter DrawLineStroke proposal [message #23895] Wed, 02 December 2009 08:49 Go to previous message
koldo is currently offline  koldo
Messages: 3361
Registered: August 2008
Senior Veteran
Hello Mirek

Very recently there have been a change in DrawLineStroke() so that from now all lines are rounded. All previous calls to LineCap() are useless:

void Painter::DrawLineStroke(int width, Color color)
{
        Begin();
        LineCap(LINECAP_ROUND);   <<=== Line added
        switch(width) {
                case PEN_NULL:
                        Stroke(0, color);
                        End();
                        return;
                case PEN_SOLID:
                        Stroke(1, color);
                        break;
                case PEN_DASH:
                        Dash("18 6");
                        break;
                case PEN_DOT:
                        Dash("3 3");
                        break;
                case PEN_DASHDOT:
                        Dash("9 6 3 6");
                        break;
                case PEN_DASHDOTDOT:
                        Dash("9 3 3 3 3 3");
                        break;
        default:
                Stroke(width, color);
                End();
                return;
        }
        Stroke(1, color);
        End();
}


It would be good if you could remove that line Smile

Best regards
Koldo


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Util.cpp static sIniFile BUG FIX
Next Topic: Polymorphic XML
Goto Forum:
  


Current Time: Mon May 13 20:28:54 CEST 2024

Total time taken to generate the page: 0.02996 seconds