Home » Developing U++ » UppHub » Scatter malfunction du to ImageDraw bug ??
Scatter malfunction du to ImageDraw bug ?? [message #34968] |
Wed, 21 December 2011 23:33 |
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
|
|
|
|
Re: Scatter malfunction du to ImageDraw bug ?? [message #34973 is a reply to message #34972] |
Thu, 22 December 2011 17:24 |
Didier
Messages: 680 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 !
|
|
|
Goto Forum:
Current Time: Wed Jun 05 04:38:12 CEST 2024
Total time taken to generate the page: 0.01058 seconds
|