Post Reply 
Omitting arguments in commands
05-24-2020, 10:17 PM (This post was last modified: 05-24-2020 10:21 PM by pinkman.)
Post: #2
RE: Omitting arguments in commands
If you need the last argument (background color), because colors and width are integers, you need to provide the intermediate arguments (ie width).
But I don’t see why it should be a problem, because whatever the width you provide (equals or less than 320), TEXTOUT_P will print the text as needed, and will return the next position if you need to print something else.
If you give an insuffisant width value the text will be truncated, that’s why the easiest method is to set width to 320, and the clean method is to set width to (320-x).

Other functions with optional arguments behave the same: the compiler matches the arguments according to the types. There is no syntax (like “,,”) to bypass an argument.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Omitting arguments in commands - Franco_64 - 05-24-2020, 11:30 AM
RE: Omitting arguments in commands - pinkman - 05-24-2020 10:17 PM

User(s) browsing this thread: