MCPcopy Create free account
hub / github.com/Bananymous/banan-os / sync_pixels_rectangle

Method sync_pixels_rectangle

kernel/kernel/Device/FramebufferDevice.cpp:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 }
257
258 void FramebufferDevice::sync_pixels_rectangle(uint32_t top_right_x, uint32_t top_right_y, uint32_t width, uint32_t height)
259 {
260 if (top_right_x >= m_width || top_right_y >= m_height)
261 return;
262 if (top_right_x + width > m_width)
263 width = m_width - top_right_x;
264 if (top_right_y + height > m_height)
265 height = m_height - top_right_y;
266
267 for (uint32_t row = top_right_y; row < top_right_y + height; row++)
268 sync_pixels_linear(row * m_width + top_right_x, width);
269 }
270
271 class FramebufferMemoryRegion : public MemoryRegion
272 {

Callers 3

dump_qr_codeFunction · 0.80
putchar_atMethod · 0.80
show_cursorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected