Use screen name for Dispmanx updates (harmonized syntax across file)

This commit is contained in:
Dimitris Panokostas 2018-01-29 00:52:56 +01:00
parent 7b26976aa3
commit f24301e8dd

View file

@ -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);