Fix SGB support in SDL’s software rendering. Fixes #208
This commit is contained in:
parent
dee29c118c
commit
7d6cdf3819
@ -33,7 +33,7 @@ void render_texture(void *pixels, void *previous)
|
|||||||
{
|
{
|
||||||
if (renderer) {
|
if (renderer) {
|
||||||
if (pixels) {
|
if (pixels) {
|
||||||
SDL_UpdateTexture(texture, NULL, pixels, 160 * sizeof (uint32_t));
|
SDL_UpdateTexture(texture, NULL, pixels, GB_get_screen_width(&gb) * sizeof (uint32_t));
|
||||||
}
|
}
|
||||||
SDL_RenderClear(renderer);
|
SDL_RenderClear(renderer);
|
||||||
SDL_RenderCopy(renderer, texture, NULL, NULL);
|
SDL_RenderCopy(renderer, texture, NULL, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user