20
edits
(→Example: a few more comments and a minor formatting correction) |
|||
Line 164: | Line 164: | ||
#*If format is NULL, use Graphics::PixelFormat::createFormatCLUT8() | #*If format is NULL, use Graphics::PixelFormat::createFormatCLUT8() | ||
#*If requested screen format is supported, attempt to set screen up with it. | #*If requested screen format is supported, attempt to set screen up with it. | ||
#**If setup is unsuccessful, fall back to | #**If setup is unsuccessful, fall back to previous color mode and set the value that getScreenFormat returns accordingly. | ||
#***Note: During game initialization, this '''must always''' result in a fall-back to 256 color mode with getScreenFormat returning a value equivalent to Graphics::PixelFormat::createFormatCLUT8. This may only have any other result if '''the same game''' has already run an initSize with a different format, and is trying to switch formats during runtime. | |||
#**If setup is successful, update the value that getScreenFormat returns to the value that was requested. | #**If setup is successful, update the value that getScreenFormat returns to the value that was requested. | ||
#***If format is supported by backend but not directly in hardware, ensure that graphics are converted in copyRectToScreen | #***If format is supported by backend but not directly in hardware, ensure that graphics are converted in copyRectToScreen |
edits