bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wbkgd - little bit different behave in last ncurses (regression)


From: Thomas Dickey
Subject: Re: wbkgd - little bit different behave in last ncurses (regression)
Date: Tue, 25 Feb 2020 04:50:48 -0500
User-agent: NeoMutt/20170113 (1.7.2)

On Tue, Feb 25, 2020 at 10:06:58AM +0100, Pavel Stehule wrote:
> Hi
> 
> I tested my ncurses-st-menu demo application and I was surprised so shadows
> around menu are displayed incorrectly.

https://github.com/okbob/ncurses-st-menu
 
> In my code I try clean run
> 
> clear()
> refresh()
> 
> and it was good enough for previous versions.
> 
> The shadow window is implemented in steps
> 
> 1. werase(shadow_window)
> 2. overwrite(desktop_window, shadow_window)
> 3. I try to change attribute of chars inside shadow window
> 
> mvwin_wch(menu->shadow_window, i, j, &cch);
> getcchar(&cch, wch, &attr, &cp, NULL);
> 
> setcchar(&cch, wch,
>            shadow_attr | (attr & A_ALTCHARSET),
>            config->menu_shadow_cpn, NULL);
> 
> mvwadd_wch(menu->shadow_window, i, j, &cch);
> 
> And this method doesn't work correctly on ncurses version: 6.1, patch:
> 20190803

I've seen a few (not recent) reports in Fedora which seem to be that
they've provided ncurses ABI 6 headers with some ncurses ABI 5 compatibility
libraries.  Mixing those could give problems like this (the cchar_t data
are different sizes, making video attribute updates do odd stuff).
 
> Fedora Core 31
> 
> The fix is not hard - I had to run explicitly
> 
> wclear(stdsrc)
> 
> But if I understand correctly, then just clear should be enough?

I guess so - I'm not aware of any regressions in this area.

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]