Menu

#487 MUIA_Text_Contents pen selection prints part of control chars

general
open-accepted
None
5
2018-12-20
2015-10-14
No

The pen selection control in the textengine seems to be broken in zune, at least on ABI v1/x86_64-linux:

MUIA_Text_Contents, "Hello world!\n\33P[3]How\33P[] are\33P[3] you?"

results in a text completely printed in pen color 3 (no switch back to default for "are") and the text displayed is:

"[3How[ are[3 you?"

Same problem, if other pens are used.

The test code used is the "Hello World" example on http://aros.sourceforge.net/documentation/developers/zune-application-development.php, with line 19 replaced with the MUIA_Text_Contents line above.

1 Attachments

Discussion

  • Neil Cafferkey

    Neil Cafferkey - 2018-12-20

    This is basically fixed with SVN r55508. However, I'm not sure if empty brackets are supposed to cause a switch to the "default" pen. I can't find documentation for this feature, but testing with MUI 3 & 4 suggests it may interpret that as Pen 0. So I made AROS do the same.

     
  • Neil Cafferkey

    Neil Cafferkey - 2018-12-20
    • status: open --> open-accepted
    • assigned_to: Neil Cafferkey
    • Group: x86_64-linux --> general
     

Log in to post a comment.