Skip to content

MCC TextEditor 15.47

Compare
Choose a tag to compare
@jens-maus jens-maus released this 06 Aug 18:28
· 123 commits to master since this release

Version 15.47 of MCC TextEditor

Changes:

  • create a fully layered rastport for double buffering instead of using a non-layered one. This fixes the issues with italic text starting in the first column. Italic text might cause drawing to coordinates left of the desired text position and hence requires proper clipping.
  • implemented a new method to cause asynchronous redraws. This is necessary, because MUI4 forbids recursive invokations of MUIM_Draw to avoid infinit loops. However, the best approach would be to fix this in TextEditor.mcc directly and NOT to call MUI_Redraw() recursively.
  • fixed a coloring issue in pen mode
  • implemented MUIA_TextEditor_RGBMode to completely avoid the usage of pens for text rendering. All pen numbers will be converted to direct RGB values as soon as their color information is available, i.e. MUIM_Setup was called for the TextEditor object.
  • reworked the RGB color handling to be independent of patches like AfAOS on AmigaOS3.
  • export the lower 24bits of the RGB color only for consistency with the documentation and the import functions.
  • use SetRPAttrs() only to set the text color
  • implemented support for direct RGB color specs as known from MUI4's text engine. Use escape sequences like \033P[RRGGBB] to set the RGB color "RRGGBB" encoded in hex. The visual display of such RGB colors requires a hi/truecolor screen and a graphics.library which is able to handle such RGB colors. The latter is true for AmigaOS 4, MorphOS and AROS. For AmigaOS 3.x a patch like AfAOS is required.
  • implemented an alternative way to handle the current cursor position. This way no longer treats the position as separate X and Y values but as an index into the text buffer. This index value is then converted into the known X and Y values automatically. Thanks to Andreas Falkenhahn for the suggestion.