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 » Draw, Display, Images, Bitmaps, Icons » Bug: Missing width in DrawArc on X11
Re: Bug: Missing width in DrawArc on X11 [message #35819 is a reply to message #35763] Fri, 23 March 2012 20:44 Go to previous messageGo to previous message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

I agree with you: There should definitely be a SetLineStyle() call in the beginning of DrawArcOp() in file DrawOpX11.cpp as follows:

void SystemDraw::DrawArcOp(const Rect& rc, Point start, Point end, int width, Color color)
{
	GuiLock __;
	SetLineStyle(width);     // This needs to be added
	XGCValues gcv, gcv_old;
	XGetGCValues(Xdisplay, GetGC(), GCForeground, &gcv_old);
	Point offset = GetOffset();
        ...


Hope someone in the core team commits this soon. (I guess the DrawArc is a very little used functionality -- at least on X11 platforms -- since nobody has discovered and fixed it before.)

The SetLineStyle() should not be needed in applications since all drawing primitives should call it as needed for desired results.

Best regards,

Tom
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Centering text in a rectange
Next Topic: Problem in dasher.cpp and proposed solution
Goto Forum:
  


Current Time: Mon May 06 01:19:05 CEST 2024

Total time taken to generate the page: 0.02257 seconds