[Tuxpaint-devel] Polygon fill messing with other tools drawing
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Pere P. i C. <per...@gm...> - 2024-04-07 13:11:26
|
Hi all, Tested the new polyfill stuff, it is nice :) Just found a minor problem: Start Tux Paint, select the Polygon Fill tool. select another tool and draw something. Return to the Polygon Fill tool, see how everything you had drawn is lost. The problem is polyfill_snapshot being kept and later blit into the canvas via set_color() -> draw_preview() before switchin() We could clean up polyfill_snapshot at switchout() and recreate it at each swcithin() or we could set some marker, mark it at switchout, clean it up at switchin() and only blit polyfill_snapshot if the marker allows it, that would allow to reuse polyfill_snapshot and not destroy/recreate it at each switchout()/switchin() cycle. HTH Pere |