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: address review feedback for Renderer#read_pixels
- Accept SDL2::PixelFormat in addition to Integer by using
uint32_for_format() instead of NUM2UINT()
- Remove incorrect ARGB8888 default override; pass format=0 through
to SDL_RenderReadPixels as-is (SDL2 uses the rendering target's
format when 0 is specified)
- Query renderer info to determine correct pitch when format is 0
- Improve RDoc with @overload, usage examples, and caveats
Addresses feedback from ohai#29.
Fixes#9
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments