Post Reply 
ATEXTOUT_P
05-08-2024, 07:11 AM (This post was last modified: 05-08-2024 07:26 AM by komame.)
Post: #5
RE: ATEXTOUT_P
(05-08-2024 05:21 AM)Tyann Wrote:  Hello komame

Very nice demo, but the program returns an error (tested on the emulator): the #FFFFFF in the first ATEXTOUT_P is missing an 'h'.
I also thought we'd forgotten something about TEXTOUT_P compatibility:
atextout doesn't return an 'X' value.

Hi Tyann,

Thank you for noticing that error. With default settings, the absence of "h" doesn't signal an error, and the program works correctly, so the error would only appear if someone has changed the settings in HOME => Settings, which is why it slipped my attention (because I still have the default settings). In situations where the program uses binary integers, we need to insert the pragma in the program header:
Code:
#pragma mode( separator(.,;) integer(h32) )
and then the "h" at the end of the number becomes optional. The attachment has already been corrected.
Regarding the return of the position of the next character (i.e., what is returned by TEXTOUT_P), here it conflicts with the "frame" format because it excludes the continuation of text in the standard way. To continue the text using the "frame" format, the text needs to be pushed further away so that the next character doesn't overlap with the frame of the previous text. This one format somewhat complicates the implementation of this task.

Piotr Kowalewski
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
ATEXTOUT_P - Tyann - 05-02-2024, 02:49 PM
RE: ATEXTOUT_P - Tyann - 05-04-2024, 03:20 PM
RE: ATEXTOUT_P - komame - 05-07-2024, 04:06 PM
RE: ATEXTOUT_P - Tyann - 05-08-2024, 05:21 AM
RE: ATEXTOUT_P - komame - 05-08-2024 07:11 AM
RE: ATEXTOUT_P - Tyann - 05-08-2024, 08:31 AM
RE: ATEXTOUT_P - komame - 05-10-2024, 07:11 PM
RE: ATEXTOUT_P - Tyann - 05-11-2024, 05:23 AM
RE: ATEXTOUT_P - komame - 05-14-2024, 09:45 AM



User(s) browsing this thread: 1 Guest(s)