LCDproc development and user support list

Text archives Help


[Lcdproc] MtxOrb hbars missing bottom row of pixels


Chronological Thread 
  • From: bsdfan at nurfuerspam.de (Markus Dolze)
  • Subject: [Lcdproc] MtxOrb hbars missing bottom row of pixels
  • Date: Thu, 26 Feb 2009 08:05:58 +0100

Benjamin Roberts wrote:
> I noticed this weekend that my Matrix Orbital LK202-USB display was
> only displaying seven vertical pixels of the last hbar cell in each
> bar, missing the bottom row. The cells to the left of the last one are
> fine because they are completely filled block characters, which makes
> the problem easy to notice on any hbar which consists of at least one
> completely filled cell and a partially filled final cell.
>
> The problematic code is in MtxOrb_hbar (this is also the code in CVS
> as of today):
>
>
>> for (i = 1; i <= p->cellwidth; i++) {
>> // fill pixel columns from left to right.
>> memset(hBar, 0xFF & ~((1 << (p->cellwidth - i)) - 1),
>> sizeof(hBar)-1);
>> MtxOrb_set_char(drvthis, i, hBar);
>> }
>>
>
> I changed the last argument of the memset line from "sizeof(hBar)-1"
> to "sizeof(hBar)" and it solved the problem. However, due to a charset
> incompatibility I have modified my copy of lcdproc to use a custom
> icon for ICON_BLOCK_FILLED (an 8x5 of 1's, as defined by the normally
> commented out block_filled[] array in MtxOrb_icon) so it's possible my
> icon does not represent the character that's on normal LCD character
> sets. Do other people see this problem or is it just my BLOCK_FILLED
> character?
>
> Ben
>
>
Commited to CVS.

Markus



  • [Lcdproc] MtxOrb hbars missing bottom row of pixels, Markus Dolze, 02/26/2009

Archive powered by MHonArc 2.6.18.

Top of page