AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     pointer to TMmemoryblock
     R1 =     pointer to TMviewblock
     R2 =     pointer to TMcolourblock
     R3 =     X min workarea (OS units, inclusive)
     R4 =     Y min workarea (OS units, inclusive)
     R5 =     X max workarea (OS units, inclusive)
     R6 =     Y max workarea (OS units, inclusive)
     R7 =     zero (for a complete setup, which recalculates also the colour tables for the current palette)
           non-zero (window/workarea resize only, much faster)

<=     Updates the TMviewblock (Note):
     +72     X min workarea (OS units)
     +76     Y min workarea (OS units)
     +80     X max workarea (OS units)
     +84     Y max workarea (OS units)

This sets up Gemini so that it is ready to output the image on-screen using Gemini_Render. You must call this routine every time you want to change the image size, the desktop palette or because of a screen mode change.
Gemini_SetUpScreen note
These output coordinates may or may not be equal to those you pass as input. Coordinates are translated into memory addresses for plotting purposes, which must be byte aligned. In practice, only the X coordinates may be affected from this readjustment phase. In particular, when in a 4bpp mode, X workarea coordinates must be multiple of 2 pixels. From 8bpp modes upwards (and so also 16bpp and 32bpp) there aren't restrictions.

[sh-index] Back to list of manuals