]> git.neil.brown.name Git - edlib.git/commit
ncurses: fix setting of default attrs on Draw:clear
authorNeilBrown <neil@brown.name>
Sun, 3 Sep 2023 09:48:18 +0000 (19:48 +1000)
committerNeilBrown <neil@brown.name>
Mon, 4 Sep 2023 23:07:53 +0000 (09:07 +1000)
commit88a45b1e2e9561e172abf77f392ecb6e490ccd49
treef5e4a3ab48cb5175001a6de0fb764873157e7198
parent48c9987969cf16dbc5a8a8b6d5e18ec2d25d24a5
ncurses: fix setting of default attrs on Draw:clear

If no attrs are given for Draw:clear, we use background from parent.

This wasn't implemented properly.  If the pane receiving the text was
the same as the pane that was cleared, the text got the background of a
different pane.  That should only happen on clear, not when drawing text.

Signed-off-by: NeilBrown <neil@brown.name>
display-ncurses.c