src/window/window_spans.c
The windows' outline for a screen transition: for each scan line, the left and right edge of the windows on it, read off the UI tilemap by ARM code that mnScanlineWindowFillSpans copies into RAM for each call. More…
Functions
| Name | Description | |
|---|---|---|
Uint16 * | mnScanlineWindowBuildSpans (Uint16 *scanlineBounds, Uint16 *tilemap) | Writes the hardware window's horizontal extent, (left << 8) | right, into the second halfword of each of the screen's 160 lines' pairs at scanlineBounds, from the window borders on the UI tilemap at tilemap (BG_SCREEN_WIDTH tiles a row, DISPLAY_TILE_WIDTH shown), and returns the end of what it wrote. |
Description
The windows' outline for a screen transition: for each scan line, the left
and right edge of the windows on it, read off the UI tilemap by ARM code that
mnScanlineWindowFillSpans copies into RAM for each call. The windows' rounded
corners cut a pixel off each end of a window's top and bottom line.
Functions in detail
mnScanlineWindowBuildSpans
Uint16 *mnScanlineWindowBuildSpans(Uint16 *scanlineBounds, Uint16 *tilemap)
Writes the hardware window's horizontal extent, (left << 8) | right, into the
second halfword of each of the screen's 160 lines' pairs at scanlineBounds,
from the window borders on the UI tilemap at tilemap (BG_SCREEN_WIDTH tiles a
row, DISPLAY_TILE_WIDTH shown), and returns the end of what it wrote. The
left edge is the first border tile on the row, the right edge the last.
References Sint32.
Definition at line 16 of file window_spans.c.