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 » Developing U++ » UppHub » Scatter malfunction du to ImageDraw bug ??
Scatter malfunction du to ImageDraw bug ?? [message #34968] Wed, 21 December 2011 23:33 Go to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hi Koldo,

I recompiled my spearfishing app yesterday and tried it a bit and ... fell on a total application/desktop freeze.

I am working under linux and after a code compare and a few tests I found the modified line that was causing the trouble:

void Scatter::SetDrawing(Draw& w, const int& scale) const
.
.
if(antialiasing)		//  && w.IsGui())	IsGui() is always false in Linux
false in Linux
	{
		ImageDraw imdraw(3*l,3*h);	
		Plot (imdraw,3,3*l,3*h);
		w.DrawImage(0,0,l,h,imdraw);
	} else 
		Plot(w,scale,l,h);
.
.


I just re established the following test condition or turn off antialiasing
&& w.IsGui()

==> if((antialiasing)  && w.IsGui())	//IsGui() is always 	


And it worked again.

The 'Scatter::SetDrawing()' is called from the following method

Drawing Scatter::GetDrawing() const
{
	DrawingDraw ddw(6*GetSize());
	SetDrawing (ddw, 6);
	return ddw;
}


Any ideas ??

[Updated on: Wed, 21 December 2011 23:36]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: CtrlBinder as an alternative for CtrlRetriever
Next Topic: MultiList
Goto Forum:
  


Current Time: Thu Apr 25 14:24:37 CEST 2024

Total time taken to generate the page: 0.02579 seconds