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 next message
Didier is currently offline  Didier
Messages: 671
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

Re: Scatter malfunction du to ImageDraw bug ?? [message #34972 is a reply to message #34968] Thu, 22 December 2011 11:41 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3268
Registered: August 2008
Senior Veteran
Hello Didier

In Linux GetInfo() always returns false and anyway in Scatter antialiasing is false by default.

I have tested both options of the if and the program runs well.

Anyway I will remove the //.


Best regards
IƱaki
Re: Scatter malfunction du to ImageDraw bug ?? [message #34973 is a reply to message #34972] Thu, 22 December 2011 17:24 Go to previous message
Didier is currently offline  Didier
Messages: 671
Registered: November 2008
Location: France
Contributor
I will try to make a test case.

The bug probably is in ImageDraw since my code used to work fine before and there aren't many changes in Scatter... which is not the case in ImageDraw with all the RainBow enhancements !
Previous Topic: CtrlBinder as an alternative for CtrlRetriever
Next Topic: MultiList
Goto Forum:
  


Current Time: Mon Oct 18 10:16:33 CEST 2021

Total time taken to generate the page: 0.01059 seconds