Could it be related to display driver?

On January 28, 2022 2:10:46 PM HST, "[email protected]" 
<[email protected]> wrote:
> In my experimentation for 400% and 800% magnification, I am experiencing a 
> malfunction (entire image displays as black) when the magnified image is 
> over 134217728 pixels.
> 
> I have a bad code change work around for the problem and will figure out a 
> better code change.
> 
> *Who do I ask for the mercurial write access, so I can put the relevant 
> changes into a branch and try to get some testing by others?*
> 
> I did a lot of stepping through the code looking for the actual failure 
> point and haven't found it yet, but I expect to.
> 
> I think the whole failure might be dependent on the environment (such as, 
> the bug may be in or below gtk, rather than in hugin or wxWidgets, and I 
> expect some hugin environments don't use gtk).  I'm even more confident 
> that the performance reduction (for the CP dialog) caused by my code change 
> and the possible performance increase (relative to original, not just 
> relative to a crude fix) likely from doing it right would be highly 
> dependent on which tools (gtk etc. and maybe even display driver) are 
> underneath.  I can't test enough to do that justice.
> 
> The crude fix is replacing the line:
> dc.DrawBitmap(bitmap,0,0);
> in CPImageCtrl::OnDraw with 
> if (bitmap.GetWidth() > 2*vSize.GetWidth() && bitmap.GetHeight() > 
> 2*vSize.GetHeight() )
> {
>     int posX, posY;
>     GetViewStart(&posX, &posY);
>     wxBitmap const& subBit = 
> bitmap.GetSubBitmap(wxRect(posX,posY,vSize.GetWidth(),vSize.GetHeight()));
>     dc.DrawBitmap(subBit,posX,posY);
> } else {
>     dc.DrawBitmap(bitmap,0,0);
> }
> 
> -- 
> A list of frequently asked questions is available at: 
> http://wiki.panotools.org/Hugin_FAQ
> --- 
> You received this message because you are subscribed to the Google Groups 
> "hugin and other free panoramic software" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/hugin-ptx/8ef68e96-8bc0-4803-9a19-37377ebb66c5n%40googlegroups.com.


-- 
David W. Jones
[email protected]
exploring the landscape of god
http://dancingtreefrog.com

Sent from my Android device with F/LOSS K-9 Mail.

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/1A989BBC-0F41-4AC6-8E52-8712CEEB12B5%40gmail.com.

Reply via email to