mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-30 20:19:49 +02:00
Fix SGB support in SDL’s software rendering. Fixes #208
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user