Commit 7151b24
fix: use explicit PixelFormat::ARGB8888 in screenshot and fix read_pixels
- Update screenshot.rb to explicitly specify SDL2::PixelFormat::ARGB8888
instead of relying on format=0 default, ensuring consistent byte order
across all platforms (including Wayland/Linux)
- Update ruby-sdl2 submodule to include read_pixels fixes:
- Accept SDL2::PixelFormat objects (not just Integer)
- Remove incorrect ARGB8888 default override
- Query renderer info for correct pitch when format=0
Addresses feedback from ohai/ruby-sdl2#29.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c63444a commit 7151b24
File tree
2 files changed
+3
-3
lines changed- ruby
- smalruby3/lib/smalruby3/render/renderer
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments