bug-ncurses
[Top][All Lists]
Advanced

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

Re: Win32 console application displaying characters a pixel too short


From: Thomas Dickey
Subject: Re: Win32 console application displaying characters a pixel too short
Date: Sat, 27 Jul 2013 16:01:27 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Jul 23, 2013 at 10:01:57AM +0000, BENARD Olivier wrote:
> Hello,
> 
> Continuing on the problem I have with mvaddstr() displaying characters a
> pixel too short, I have written a little test case to demonstrate the
> problem.  Nothing fancy in the code, just the initialization of NCurses with
> colors + pairings and random display of value of key pressed as an integer on
> the screen.  Clearly, this isn't related to wide characters at all, but more
> likely a problem with colors (since the problem doesn't occur when displaying
> < white > characters on the screen).

hmm - I don't see a problem when compiling on mingw and (after supplying a 
'random' function)
exercising the code.

>     for (i = 0; i < 1000; i++)
>     {
>         y = random(24);

e.g.,
        #define random(n) (n) * ranf()
and borrowing 'ranf' from dots.c

> When executing this little test case (for example by pressing 'h'
> repeatedly), it's easy to see that some of the text written on the screen
> overlaps after a while.  Any idea where's the problem ?  In my code ?  In the
> console api ?  In NCurses ?

I suspect it's the console api - as I noted before, ncurses doesn't know about 
pixels.

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

Attachment: signature.asc
Description: Digital signature


reply via email to

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