MCPcopy Index your code
hub / github.com/endbasic/endbasic / fb_addr

Method fb_addr

std/src/gfx/lcd/buffered/mod.rs:221–225  ·  view source on GitHub ↗

Gets the start address of the pixel `x`/`y` in the framebuffer.

(&self, x: usize, y: usize)

Source from the content-addressed store, hash-verified

219
220 /// Gets the start address of the pixel `x`/`y` in the framebuffer.
221 fn fb_addr(&self, x: usize, y: usize) -> usize {
222 debug_assert!(x < self.size_pixels.width);
223 debug_assert!(y < self.size_pixels.height);
224 ((y * self.size_pixels.width) + x) * self.stride
225 }
226
227 /// Extends the current damage area to include the area between between `x1y1` and `x2y2`
228 /// (inclusive) as damaged.

Callers 5

fillMethod · 0.80
force_present_canvasMethod · 0.80
peek_pixelMethod · 0.80
read_pixelsMethod · 0.80
put_pixelsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected