mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-03 10:51:12 +02:00
CMenuWidget::saveScreen: Fix segfault
This commit is contained in:
@@ -1389,7 +1389,7 @@ void CMenuWidget::saveScreen()
|
|||||||
|
|
||||||
delete[] background;
|
delete[] background;
|
||||||
|
|
||||||
background = new fb_pixel_t [full_width * full_height];
|
background = new fb_pixel_t [full_width * (full_height+fbutton_height)];
|
||||||
if(background)
|
if(background)
|
||||||
frameBuffer->SaveScreen(x /*-ConnectLineBox_Width*/, y, full_width, full_height + fbutton_height, background);
|
frameBuffer->SaveScreen(x /*-ConnectLineBox_Width*/, y, full_width, full_height + fbutton_height, background);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user