Bdisp Rectangle

From WikiPrizm
Revision as of 14:28, 22 December 2022 by Dr-carlos (talk | contribs) (Bdisp_Rectangle is now in libfxcg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Synopsis

Header: fxcg/display.h
Syscall index: 0x0924
Function signature: void Bdisp_Rectangle(int x1, int y1, int x2, int y2, char color)

Draws a rectangle to VRAM, avoiding the status area.

Parameters

  • x1 - horizontal coordinate of the top-left corner of the rectangle, 0 to 383.
  • y1 - vertical coordinate of the top-left corner of the rectangle, 0 to 191. 24 pixels are automatically added to bypass the status area.
  • x2 - horizontal coordinate of the bottom-right corner of the rectangle, 0 to 383.
  • y2 - vertical coordinate of the bottom-right corner of the rectangle, 0 to 191. 24 pixels are automatically added to bypass the status area.
  • color - Line color of the rectangle, as listed in note 3 of PrintXY.