From f24301e8ddea4d3bbc5e93d9bd0295858678a5ef Mon Sep 17 00:00:00 2001 From: Dimitris Panokostas Date: Mon, 29 Jan 2018 00:52:56 +0100 Subject: [PATCH] Use screen name for Dispmanx updates (harmonized syntax across file) --- src/osdep/amiberry_gfx.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osdep/amiberry_gfx.cpp b/src/osdep/amiberry_gfx.cpp index 84246bfd..170dcd30 100644 --- a/src/osdep/amiberry_gfx.cpp +++ b/src/osdep/amiberry_gfx.cpp @@ -234,8 +234,8 @@ static void *display_thread(void *unused) current_resource_amigafb = 0; vc_dispmanx_resource_write_data(dispmanxresource_amigafb_1, VC_IMAGE_RGB565, - gfxvidinfo.drawbuffer.rowbytes, - gfxvidinfo.drawbuffer.bufmem, + screen->pitch, + screen->pixels, &blit_rect); dispmanxupdate = vc_dispmanx_update_start(0); vc_dispmanx_element_change_source(dispmanxupdate, dispmanxelement, dispmanxresource_amigafb_1); @@ -245,8 +245,8 @@ static void *display_thread(void *unused) current_resource_amigafb = 1; vc_dispmanx_resource_write_data(dispmanxresource_amigafb_2, VC_IMAGE_RGB565, - gfxvidinfo.drawbuffer.rowbytes, - gfxvidinfo.drawbuffer.bufmem, + screen->pitch, + screen->pixels, &blit_rect); dispmanxupdate = vc_dispmanx_update_start(0); vc_dispmanx_element_change_source(dispmanxupdate, dispmanxelement, dispmanxresource_amigafb_2);