From WikiTI
Revision as of 10:09, 20 October 2013 by FloppusMaximus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Hypothesized Official Name: DrawRectBorderClear

BCALL Address: 4D74h

Draw a rectangular outline 1 pixel wide, and fill the interior of the rectangle with white.


  • HL = X coordinate of left edge
  • DE = X coordinate of right edge (must be greater than HL and at most 319)
  • B = Y coordinate of top edge (from top of screen)
  • C = Y coordinate of bottom edge (must be greater than B and at most 239)
  • (penFGColor) = RGB color of outline



  • AF, BC, DE, HL
  • Interrupts disabled


The rectangle is drawn only to the LCD, never to the graph buffer.

The dimensions of the enclosed area are (HL-DE-1) × (C-B-1). The outer dimensions of the border are (HL-DE+1) × (C-B+1).