AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R1 =     redraw block, offsets looked at are:
             r_bpp          To find the number of bits per pixel.
             r_charw     Width of char in pixels
             r_charh     Height of char in pixels
             r_caddr     Address to write the bitmap. Memory at offsets
                      R2*r_cbpc to (R3+1)*r_bpc must be preserved
             r_cbpl     Cache line width in bytes (as defined under
                      r_caddr help text)
             r_cbpc     Number of bytes per cached character (as defined
                      under r_caddr help text)
     R2 =     First character to be converted (eg 0)
     R3 =     Last character to be converted (inclusive) (eg 255)
     R4 =     Address of source bitmap of the format described under r_caddr
           but with 1 bit per pixel (ie 2 colour mode format)

<=     R0 and flags corrupted
     r_caddr block written to

This SWI takes a character bitmap of the form of 1 bit per pixel, (the bit
set for foreground/clear for background) and converts it into a bitmap for
use by the ZapRedraw_RedrawArea, by changing each '1' to n '1's and each
'0' to n '0's where 'n' is the number of bits per pixel given. It uses the
SWI ZapRedraw_ConvBitmapChar to do this.

[sh-index] Back to list of manuals