Skip to content

Commit

Permalink
KERNAL: mention pitfall of opaque layer 1 for FB_init/GRAPH_init (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur authored Dec 19, 2024
1 parent 3c3791a commit 8d05349
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions X16 Reference - 05 - KERNAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -1254,6 +1254,8 @@ The default driver supports the VERA framebuffer at a resolution of 320x240 pixe
Signature: void FB_init();
Purpose: Enter graphics mode.

The default driver for this call activates VERA layer 0 without changing the state of any other VERA layers. If layer 1 (such as the KERNAL text layer) is active and opaque, it may occlude layer 0 entirely.

---

#### Function Name: FB_get_info
Expand Down Expand Up @@ -1393,6 +1395,8 @@ Purpose: Activate framebuffer driver, enter and initialize graphics mode

**Description**: This call activates the framebuffer driver whose vector table is passed in r0. If r0 is 0, the default driver is activated. It then switches the video hardware into graphics mode, sets the window to full screen, initializes the colors and activates the system font.

This function calls `FB_init`, whose default driver activates VERA layer 0 without changing the state of any other VERA layers. If layer 1 (such as the KERNAL text layer) is active and opaque, it may occlude layer 0 entirely.

---

#### Function Name: GRAPH_clear
Expand Down

0 comments on commit 8d05349

Please sign in to comment.