summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudio Ciccani <klan@users.sf.net>2007-11-11 14:52:34 +0100
committerClaudio Ciccani <klan@users.sf.net>2007-11-11 14:52:34 +0100
commita4f5aafafcff52f240f551a07733f542ac6fc429 (patch)
tree64205ef7cf84373ff3adcc84b3d4e654a89deb46
parent9615d784d44c2c2a0bdd2a22abb0cd99b2cbf72f (diff)
downloadxine-lib-a4f5aafafcff52f240f551a07733f542ac6fc429.tar.gz
xine-lib-a4f5aafafcff52f240f551a07733f542ac6fc429.tar.bz2
Reset the previous screen resolution after switching to fullscreen.
This is because, while in shared mode the default resolution is taken from directfb config, in fullscreen mode the default resolution comes from fbdev configuration.
-rw-r--r--src/video_out/video_out_directfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_out/video_out_directfb.c b/src/video_out/video_out_directfb.c
index 523da11c1..1ab1fb8e8 100644
--- a/src/video_out/video_out_directfb.c
+++ b/src/video_out/video_out_directfb.c
@@ -1663,13 +1663,13 @@ static DFBResult init_device (directfb_driver_t *this) {
if (this->visual_type == XINE_VISUAL_TYPE_FB) {
this->underlay->SetCooperativeLevel (this->underlay, DLSCL_EXCLUSIVE);
- this->underlay->SetBackgroundMode( this->underlay, DLBM_DONTCARE);
+ this->underlay->SetConfiguration (this->underlay, &config);
}
}
}
else {
/* playing to underlay,
- * check if stretchblit is hardware accelerated. */
+ * check whether stretchblit is hardware accelerated. */
IDirectFBSurface *temp;
DFBSurfaceDescription dsc;
DFBAccelerationMask mask = DFXL_NONE;