Re: [PATCH v1a] grub-emu: Add SDL2 support

2023-06-21 Thread Daniel Kiper
On Fri, Jun 16, 2023 at 01:52:27PM +0200, Julian Andres Klode wrote: > So all we did with the surface in SDL1 was split into window, > surface, renderer, and texture. Instead of drawing into the > surface and then flipping, you build your pixels, then update > a texture, and then copy the texture t

Re: [PATCH v1a] grub-emu: Add SDL2 support

2023-06-16 Thread Julian Andres Klode
On Fri, Jun 16, 2023 at 01:52:27PM +0200, Julian Andres Klode wrote: > So all we did with the surface in SDL1 was split into window, > surface, renderer, and texture. Instead of drawing into the > surface and then flipping, you build your pixels, then update > a texture, and then copy the texture t

[PATCH v1a] grub-emu: Add SDL2 support

2023-06-16 Thread Julian Andres Klode
So all we did with the surface in SDL1 was split into window, surface, renderer, and texture. Instead of drawing into the surface and then flipping, you build your pixels, then update a texture, and then copy the texture to the renderer. Here we use an empty RGB surface to hold our Pixels, which e