PrintCXY

From WikiPrizm
Revision as of 14:06, 8 March 2013 by Balping (talk | contribs)
Jump to navigationJump to search


Synopsis

Header: display_syscalls.h
Syscall index: 0x0239
Function signature: void PrintCXY(int x, int y, unsigned char* cptr, int mode_flags, int P5, int color, int back_color, int P8, int P9 )

Similar to PrintXY, displays a line of text at the given position in pixels.

Parameters

  • int x - The x coordinate (in pixels) of the upper left corner of the first character
  • int y - The y coordinate (in pixels) of the upper left corner of the first character
  • unsigned char* cptr - The string to display. Every character is displayed, the first 2 bytes long spacer is not needed!
  • int mode_flags - Bitmask. See PrintXY's note 2
  • int P5 - unknown, set this to -1
  • int color - The RGB565 color of the characters, use the COLOR_* constants from color.h
  • int backcolor - The RGB565 color of the background, use the COLOR_* constants from color.h
  • int P8 - unknown, set this to 1
  • int P9 - unknown, set this to 0

Example

PrintCXY(44, 56, "Hello world!!!", TEXT_MODE_NORMAL, -1, COLOR_BLACK, COLOR_YELLOW, 1, 0 );