Thread Previous • Date Previous • Date Next • Thread Next |
Vesa Solonen wrote:
Wayne Stambaugh kirjoitti:1) Verify the wxDC coordinate scaling and offsetting works correctly. Please build Kicad with USE_WX_ZOOM and test it thoroughly to find anything I may have broken.WayneI've tested it on both Radeon r300 and Intel G965 GPUs with current development drivers on Linux. Both show a marked increase in zoom speed, but the obvious regressions are a polygon clipping bug (screenshot attached) and object moving. I guess you have to redraw the whole scene on any move as XOR doesn't work...
Vesa,Thanks for doing some testing. I already new that the clipping and dragging were a problem using wxGCDC. I don't see any drawing mode setting in wxGraphicsContext so it may required alpha blending to achieve the same effect. It is just starting point to get moving towards an implementation using the advanced graphics libraries. Did you get a chance to just look at using wxDC to do the zooming? For right now I am most interested in making it the default for Kicad rendering using wxDC. This will allow a lot of code to be cleaned up so that implementing the wxGC code will be a lot less painful.
This may not be too valuable report, but I saw the RC1 suffix added... Are we going to spend some time just fixing open bugs before the release and do you Jean-Pierre plan to ship WX_ZOOM enabled? Is there any release day set in stone yet? I'd very much like to get some libs sorted and also get Øyvind's module work aboard. New release thread might be in place...
If we are going to release in the next few weeks, we may want to use the current coordinate translation code. If we are talking about releasing in the next few months, than making USE_WX_ZOOM the default should not present too many issues. The only issue is the new grid drawing code and wxAutoBufferedDC. As soon as USE_WX_ZOOM becomes the default, I will begin cleaning the drawing code.
Last but not least, thank you Wayne for this pioneering work. I lost most of my enthusiasm with wx documentation and because of the lack of real programming skills. Simple enough and close to metal like AVR assembly is way funnier to me :)
Your welcome. The wxWidgets documentation is reasonably good compared to a lot of open source libraries. But there is a lot of undocumented stuff in wxWidgets that is really useful. As difficult as is can be some times to dig through the wxWidgets source, it can really pay off.
Wayne
-Vesa
Thread Previous • Date Previous • Date Next • Thread Next |