From: Rob v. N. <ro...@ve...> - 2003-10-19 15:02:05
Attachments:
bug.gif
|
Hi, Maybe I'm missing something trivial, but it seems there's a bug in the handling of icons. Animated icons work fine, but just a plain icon seems not to work: just nothing is displayed. See attached screenshot. I use Red Hat 9, lcd4linux-0.9.11, X11 driver (PNG doesn't work either). greetings, Rob van Nieuwkerk lcd4linux config file: ------------------------------------ Display X11 size 20x4 font 5x8 pixel 3+0 gap -1x-1 border 1 foreground \#102000 halfground \#90c000 background \#a0d000 Row1 "this works: &1" Row2 "" Row3 "and this not: &2" Row4 "" Icons 1 Icon1.Bitmap1 ..*..|..*.. Icon1.Bitmap2 .***.|.***. Icon1.Bitmap3 *****|***** Icon1.Bitmap4 ..*..|..*.. Icon1.Bitmap5 ..*..|..*.. Icon1.Bitmap6 ..*..|..*.. Icon1.Bitmap7 ..*..|..*.. Icon1.Bitmap8 .....|..... Icon2.Bitmap1 ..*.. Icon2.Bitmap2 ..*.. Icon2.Bitmap3 ..*.. Icon2.Bitmap4 ..*.. Icon2.Bitmap5 ***** Icon2.Bitmap6 .***. Icon2.Bitmap7 ..*.. Icon2.Bitmap8 ..... ------------------------------------ |
From: Martin H. <ma...@he...> - 2003-10-19 17:31:00
|
Hi, > lcd4linux config file: > ------------------------------------ > Display X11 > size 20x4 > font 5x8 > pixel 3+0 > gap -1x-1 > border 1 > foreground \#102000 > halfground \#90c000 > background \#a0d000 > > Row1 "this works: &1" > Row2 "" > Row3 "and this not: &2" > Row4 "" > > Icons 1 ^^^^^^^^^^^ change this to "Icons 2" and it should work (unless I'm missing something). Martin |
From: Rob v. N. <ro...@ve...> - 2003-10-19 18:23:37
|
On Sun, 19 Oct 2003 18:42:31 +0200 Martin Hejl <ma...@he...> wrote: > > lcd4linux config file: > > ------------------------------------ > > Display X11 > > size 20x4 > > font 5x8 > > pixel 3+0 > > gap -1x-1 > > border 1 > > foreground \#102000 > > halfground \#90c000 > > background \#a0d000 > > > > Row1 "this works: &1" > > Row2 "" > > Row3 "and this not: &2" > > Row4 "" > > > > Icons 1 > ^^^^^^^^^^^ > > change this to "Icons 2" and it should work (unless I'm missing something). Hi Martin, Oops .., it was just an error while making the example. But the bug is really there. Changing it to 2 (or 8) does not solve the problem: simple (non-animated) icons are *not* displayed whatever I try ! greetings, Rob van Nieuwkerk command used: ./lcd4linux -F -q -f myconfig.bug corrected config: -------------------------------------------------------------- Display X11 size 20x4 font 5x8 pixel 3+0 gap -1x-1 border 1 foreground \#102000 halfground \#90c000 background \#a0d000 Row1 "this works: &1" Row2 "" Row3 "and this not: &2" Row4 "" Icons 2 Icon1.Bitmap1 ..*..|..*.. Icon1.Bitmap2 .***.|.***. Icon1.Bitmap3 *****|***** Icon1.Bitmap4 ..*..|..*.. Icon1.Bitmap5 ..*..|..*.. Icon1.Bitmap6 ..*..|..*.. Icon1.Bitmap7 ..*..|..*.. Icon1.Bitmap8 .....|..... Icon2.Bitmap1 ..*.. Icon2.Bitmap2 ..*.. Icon2.Bitmap3 ..*.. Icon2.Bitmap4 ..*.. Icon2.Bitmap5 ***** Icon2.Bitmap6 .***. Icon2.Bitmap7 ..*.. Icon2.Bitmap8 ..... -------------------------------------------------------------- |
From: Martin H. <ma...@he...> - 2003-10-19 23:08:58
|
Hi Rob, >>>Icons 1 >>^^^^^^^^^^^ >> >>change this to "Icons 2" and it should work (unless I'm missing something). > > > Hi Martin, > > Oops .., it was just an error while making the example. > > But the bug is really there. Changing it to 2 (or 8) does not solve the > problem: simple (non-animated) icons are *not* displayed whatever I try ! Too bad - well, it was worth a try. As a workaround (until the bug gets fixed), I guess you could cheat and simply define the static icon as this: Icon2.Bitmap1 ..*..|..*.. Icon2.Bitmap2 ..*..|..*.. Icon2.Bitmap3 ..*..|..*.. Icon2.Bitmap4 ..*..|..*.. Icon2.Bitmap5 *****|***** Icon2.Bitmap6 .***.|.***. Icon2.Bitmap7 ..*..|..*.. Icon2.Bitmap8 .....|..... It's a bit of a waste of user-defined chars on a physical display (the number of user-definable chars is pretty limited on some LCDs), but I guess it's a workaround for the time being. Martin |
From: Rob v. N. <ro...@ve...> - 2003-10-19 19:47:38
|
On Sun, 19 Oct 2003 20:16:15 +0200 Martin Hejl <ma...@he...> wrote: Hi Martin, > > problem: simple (non-animated) icons are *not* displayed whatever I try ! > Too bad - well, it was worth a try. > > As a workaround (until the bug gets fixed), I guess you could cheat and > simply define the static icon as this: > > Icon2.Bitmap1 ..*..|..*.. > Icon2.Bitmap2 ..*..|..*.. > Icon2.Bitmap3 ..*..|..*.. > Icon2.Bitmap4 ..*..|..*.. > Icon2.Bitmap5 *****|***** > Icon2.Bitmap6 .***.|.***. > Icon2.Bitmap7 ..*..|..*.. > Icon2.Bitmap8 .....|..... > > It's a bit of a waste of user-defined chars on a physical display (the > number of user-definable chars is pretty limited on some LCDs), but I > guess it's a workaround for the time being. Yup I already do that (also in the example), but it's kind of annoying to edit all my custom icons in this "double" way .. :-) greetings, Rob van Nieuwkerk BTW: does anyone have a *complete* latin-9 / iso_8859_15 font availailable in 5x8 format ? |
From: Martin H. <ma...@he...> - 2003-10-20 07:39:57
|
Hi again, >>It's a bit of a waste of user-defined chars on a physical display (the >>number of user-definable chars is pretty limited on some LCDs), but I >>guess it's a workaround for the time being. > > > Yup I already do that (also in the example), but it's kind of annoying > to edit all my custom icons in this "double" way .. :-) Oops, sorry, I missed that. I'll shut up now :-) > BTW: does anyone have a *complete* latin-9 / iso_8859_15 > font availailable in 5x8 format ? Sorry, not here. Martin -- Programming is like sex, one mistake and you have to support it for the rest of your life |
From: Michael R. <re...@eu...> - 2003-10-22 11:29:03
Attachments:
icon-bug.patch
|
Hi Rob, >>>problem: simple (non-animated) icons are *not* displayed whatever I try ! Well, looks like you found a bug in the X11 driver. It did only affect the raster drivers (X11, PNG, ...), all the other drivers worked well. That's why I did not notice this bug. Anyway, thanks for pointing this out! It's fixed in CVS; for 0.9.11 you could try to apply the attached patch. bye, Michael -- netWorks Vox: +43 316 698260 Michael Reinelt Fax: +43 316 692343 Geisslergasse 4 GSM: +43 676 3079941 A-8045 Graz, Austria e-mail: re...@eu... |
From: Rob v. N. <ro...@ve...> - 2003-10-22 11:33:42
|
On Wed, 22 Oct 2003 06:30:21 +0200 Michael Reinelt <re...@eu...> wrote: > Hi Rob, > > >>>problem: simple (non-animated) icons are *not* displayed whatever I try ! > > Well, looks like you found a bug in the X11 driver. It did only affect > the raster drivers (X11, PNG, ...), all the other drivers worked well. > That's why I did not notice this bug. > > Anyway, thanks for pointing this out! It's fixed in CVS; for 0.9.11 you > could try to apply the attached patch. Hi Michael, 0.9.11 + patch crashes. CVS version still shows bug. But I noticed the fix is *not* in CVS yet. CVS + patch works OK. Thanx for fixing ! greetings, Rob van Nieuwkerk |
From: Michael R. <re...@eu...> - 2003-10-22 11:24:49
|
Hi Rob, >>>>>problem: simple (non-animated) icons are *not* displayed whatever I try ! >> > 0.9.11 + patch crashes. Waht do you mean with "crahses"? Does the patch not apply? Or does lcd4linux crash? > CVS version still shows bug. But I noticed the fix is *not* in CVS yet. There's a very annoying problem with SourceForge's anonymous CVS: This server runs on their backup machines, which will be updatet every 24 hours. So you may encounter a 24h delay until you see my changes in CVS. > CVS + patch works OK. Fine! > Thanx for fixing ! Thanks for reporting! bye, Michael -- netWorks Vox: +43 316 698260 Michael Reinelt Fax: +43 316 692343 Geisslergasse 4 GSM: +43 676 3079941 A-8045 Graz, Austria e-mail: re...@eu... |
From: Rob v. N. <ro...@ve...> - 2003-10-23 02:45:07
|
On Wed, 22 Oct 2003 12:02:11 +0200 Michael Reinelt <re...@eu...> wrote: > Hi Rob, > > > >>>>>problem: simple (non-animated) icons are *not* displayed whatever I try ! > >> > > 0.9.11 + patch crashes. > > Waht do you mean with "crahses"? Does the patch not apply? Or does > lcd4linux crash? Hi Michael, Patch applies OK (with some offsets & fudge though (CVS version too btw)). But running the program with my example results in a Segmentation Fault. I also editted the fixes in manually to rule out patch problems: same result. greetings, Rob van Nieuwkerk |
From: Michael R. <re...@eu...> - 2003-10-27 09:13:50
|
Hi Rob, > Patch applies OK (with some offsets & fudge though (CVS version too btw)). > But running the program with my example results in a Segmentation Fault. > I also editted the fixes in manually to rule out patch problems: same result. Maybe the "official" 0.9.11 segfaults because of other side-effects. I'm afraid I'm too busy at the moment to debug this one. Does the CVS version chrash, too? This would be too bad. If so, please send me your lcd4linux.conf. If the CVS version works for you - please use it. bye, Michael -- netWorks Vox: +43 316 698260 Michael Reinelt Fax: +43 316 692343 Geisslergasse 4 GSM: +43 676 3079941 A-8045 Graz, Austria e-mail: re...@eu... |
From: Rob v. N. <ro...@ve...> - 2003-10-27 12:07:44
|
On Mon, 27 Oct 2003 10:11:34 +0100 Michael Reinelt <re...@eu...> wrote: > Hi Rob, > > > Patch applies OK (with some offsets & fudge though (CVS version too btw)). > > But running the program with my example results in a Segmentation Fault. > > I also editted the fixes in manually to rule out patch problems: same result. > > Maybe the "official" 0.9.11 segfaults because of other side-effects. I'm > afraid I'm too busy at the moment to debug this one. > > Does the CVS version chrash, too? This would be too bad. If so, please > send me your lcd4linux.conf. If the CVS version works for you - please > use it. Hi Michael, CVS version with your patch applied worked OK with my "problem config". greetings, Rob van Nieuwkerk |