![]() |
Routines |
| Prev: E2E9 | Up: Map | Next: E38C |
|
Used by the routine at DrawFrame.
Draws the pictures for the corners of a frame at the left and the right of one of its edges.
|
||||||||||
| DrawFrameCorners | E376 | LD H,A | Copy the y position into H. | |||||||
| E377 | LD A,(IX+$00) | Fetch the x position of the frame. | ||||||||
| E37A | SUB $08 | Subtract 08 to put the corner beside the left end of the bar. | ||||||||
| E37C | LD L,A | Copy it into L. | ||||||||
| E37D | CALL DrawPicture | Draw the left corner. | ||||||||
| E380 | LD A,(IX+$02) | Fetch the width of the frame. | ||||||||
| E383 | INC A | Add one. | ||||||||
| E384 | ADD A,A | Double it. | ||||||||
| E385 | ADD A,A | Double it again. | ||||||||
| E386 | ADD A,A | Double it a third time, to find the width in pixels. | ||||||||
| E387 | ADD A,L | Add the x position of the left corner. | ||||||||
| E388 | LD L,A | Copy it into L. | ||||||||
| E389 | JP DrawPicture | Jump to DrawPicture. | ||||||||
| Prev: E2E9 | Up: Map | Next: E38C |