driver.video.vesa32¶
VESA 32bpp draw routines.
Overview¶
This unit provides the 32bpp (true colour with padding byte) VESA framebuffer drawing implementation. It is the only fully implemented BPP variant in the VESA driver set. The init procedure registers DrawPixel in the DrawRoutines record; additional drawing operations (lines, rectangles) are provided by the generic layer or are stubs.
Dependencies¶
driver.video.typesdriver.video.vesadebug.tracercore.gfx.color
Functions and Procedures¶
init¶
SetsDrawRoutines^.DrawPixel := @DrawPixel. Called by the VESA driver when the active mode is 32bpp.
DrawPixel (internal)¶
Writes a single 32-bit pixel value to the framebuffer at coordinate (X, Y) using the formula:Notes¶
- Pixel format is 32-bit BGRA (or XRGB depending on the BIOS mode), matching the
lv_color32_tlayout used by LVGL. - No bounds checking is performed; callers are responsible for ensuring X < Width and Y < Height.