Custom Text Formatting (Previously: Getting long results in a program)
|
04-10-2024, 09:00 PM
(This post was last modified: 04-11-2024 05:01 AM by komame.)
Post: #59
|
|||
|
|||
RE: Getting long results in Program
Tyann,
A single buffer with normal height is sufficient. The algorithm is as follows:
Note that when there is no transparency or no italics, the steps are exactly the same, you just skip the block shifting or simply set the alpha value in BLIT_P to 255 (255 = no transparency). I have now realized that BLIT_P has another bug (in total 3 that I have found myself), because the last two parameters ([c] and [alpha]) should be swapped, as currently when using the [alpha] value, the [c] parameter is also required, which may cause unexpected skipping of copying pixels of color specified in [c]. EDIT: When I analyze it now, points 3 and 6 could be drawn directly on Gx at the very end. This should simplify the implementation somewhat (although this approach is not entirely my style). Best wishes Piotr Kowalewski |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 72 Guest(s)