neutrino: resize framebuffer on videomode change

this is needed on spark because the framebuffer has the same resolution
as the video plane...
This commit is contained in:
Stefan Seyfried
2012-02-22 23:29:51 +01:00
parent a96dca1547
commit b34e7205b9
4 changed files with 15 additions and 1 deletions

View File

@@ -318,6 +318,7 @@ void CVideoSettings::setupVideoSystem(bool do_ask)
{
printf("[neutrino VideoSettings] %s setup videosystem...\n", __FUNCTION__);
videoDecoder->SetVideoSystem(g_settings.video_Mode); //FIXME
frameBuffer->resize(g_settings.video_Mode);
if (do_ask)
{
@@ -328,6 +329,7 @@ void CVideoSettings::setupVideoSystem(bool do_ask)
{
g_settings.video_Mode = prev_video_mode;
videoDecoder->SetVideoSystem(g_settings.video_Mode);
frameBuffer->resize(g_settings.video_Mode);
}
}
else
@@ -491,6 +493,7 @@ void CVideoSettings::nextMode(void)
g_settings.video_Mode = VIDEOMENU_VIDEOMODE_OPTIONS[curmode].key;
//CVFD::getInstance()->ShowText(text);
videoDecoder->SetVideoSystem(g_settings.video_Mode);
frameBuffer->resize(g_settings.video_Mode);
//return;
disp_cur = 1;
}