Difference between revisions of "84PCSE:BCALLs:55A2"

From WikiTI
Jump to: navigation, search
(DrawThickRectBorder)
 
m (Comments: silly minus signs, they looked right in preview)
 
Line 24: Line 24:
 
The rectangle is drawn only to the LCD, never to the graph buffer.
 
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) (just as for [[84PCSE:BCALLs:4D65|DrawRectBorder]].)  The outer dimensions of the border are (HL?DE+3) × (C?B+3).
+
The dimensions of the enclosed area are (HL-DE-1) × (C-B-1) (just as for [[84PCSE:BCALLs:4D65|DrawRectBorder]].)  The outer dimensions of the border are (HL-DE+3) × (C-B+3).

Latest revision as of 20:27, 19 October 2013

Synopsis

Unofficial Name: DrawThickRectBorder

BCALL Address: 55A2h

Draw a rectangular outline 2 pixels wide.

Inputs

  • HL = X coordinate of left edge (must be at least 1)
  • DE = X coordinate of right edge (must be greater than HL and at most 318)
  • B = Y coordinate of top edge (from top of screen; must be at least 1)
  • C = Y coordinate of bottom edge (must be greater than B and at most 238)
  • (penFGColor) = RGB color to draw

Outputs

None

Destroys

  • AF, BC, DE, HL
  • Interrupts disabled

Comments

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) (just as for DrawRectBorder.) The outer dimensions of the border are (HL-DE+3) × (C-B+3).