[wx-dev] wxMac 2.8 branch: wxHtmlWindow displays mirrored vertically

Stefan Csomor csomor at advancedconcepts.ch
Sun Jun 3 04:03:06 PDT 2007


Hi

> > Stefan,
> >
> > Not sure what is going on here, but take a look at this:
> > http://alldunn.com/temp/weird2.png
> >
> >
> > This is the "View as HTML" option in the richtext sample.  As you
> can
> > see the content of the wxHtmlWindow is inverted.  Now here is the
> really
> > weird part:  If I click the scroll down button or press the down
> cursor
> > key then after the refresh the window is scrolled and drawn
> normally. If
> > I scroll it down another step then it is inverted again.  It goes
> back
> > and forth like that through the whole length of the html content.
> The
> > main wxHtmlWindow samples appear to be doing it too, but other
> > wxScrolledWindows appear to be fine.
>
> Looks like it has something to do with the change in rev 1.29.4.1 of
> src/mac/carbon/dcmemory.cpp.  Reverting that change fixes the
> problem.
> Is it needed or is there a better way to make the change?

I've fixed the sequence by doing the correct coordinate setup already in bitmap.cpp so that multiple invocations of the dcmemory code don't lead to flip-flops, because it's not needed there anymore.

Thanks,

Stefan




More information about the wx-dev mailing list