You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(graphics): correct stride calculation in fill_rect and draw_hline
The stride value from Canvas::stride() is in pixels, not bytes.
When calculating row byte offsets, we need to multiply by
bytes_per_pixel to get the correct memory location.
This fixes the garbled/repeated graphics output where drawing
was happening at 1/4 of the correct y-offsets.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments