![]() |
Routines |
| Prev: 58089 | Up: Map | Next: 58252 |
|
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 | 58230 | LD H,A | Copy the y position into H. | |||||||
| 58231 | LD A,(IX+0) | Fetch the x position of the frame. | ||||||||
| 58234 | SUB 8 | Subtract 8 to put the corner beside the left end of the bar. | ||||||||
| 58236 | LD L,A | Copy it into L. | ||||||||
| 58237 | CALL DrawPicture | Draw the left corner. | ||||||||
| 58240 | LD A,(IX+2) | Fetch the width of the frame. | ||||||||
| 58243 | INC A | Add one. | ||||||||
| 58244 | ADD A,A | Double it. | ||||||||
| 58245 | ADD A,A | Double it again. | ||||||||
| 58246 | ADD A,A | Double it a third time, to find the width in pixels. | ||||||||
| 58247 | ADD A,L | Add the x position of the left corner. | ||||||||
| 58248 | LD L,A | Copy it into L. | ||||||||
| 58249 | JP DrawPicture | Jump to DrawPicture. | ||||||||
| Prev: 58089 | Up: Map | Next: 58252 |