04-12-2024, 04:53 AM
(04-12-2024, 04:29 AM)SMcNeill Wrote: One thing I noticed which folks might find quite useful, that you might want to add: _PixelSize. This seems like an excellent place to include it in the tutorial, and it's quite useful in many instances, just so an user can figure out what screen they're working on.Yes, _PIXELSIZE is definitely on the list for Lesson 23: Direct Memory Manipulation.
PixelSize = 0 <-- Text Screen
PixelSize = 1 <-- 8-bit Screen
PixelSize = 4 <-- 32-bit color Screen
^Those can come in very, very handy -- especially if ever writting _MEM routines which you want to use across various screen modes.
In lesson 5 I purposely avoid the legacy screens and introduce instead SCREEN _NEWIMAGE(). However, I do agree _PIXELSIZE should be covered during the SCREEN introduction. I'll expand on the SCREEN statement to include the legacy and 256 color screens and then explain how _PIXELSIZE can be used to identify them.
Thanks for the suggestion.