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
|
|
|
Goto Forum:
Current Time: Sat May 11 17:38:13 CEST 2024
Total time taken to generate the page: 0.02637 seconds
|