On Monday 29 September 2008, Stefan Lucke wrote:
> Layer 0 VIA CLE266 Graphics Type: graphics
> Caps: alphachannel brightness contrast opacity saturation src_colorkey
> surface
> Layer 1 VIA Unichrome Video Type: graphics picture video
> Caps: deinterlacing dst_colorkey levels field_parity opacity
> screen_location surface
> -- calling: osdLayer->SetCooperativeLevel(DLSCL_EXCLUSIVE);
> (*) FBDev/Mode: Setting 640x480 AiRGB
> (*) FBDev/Mode: Switched to 640x480 (virtual 640x480) at 32 bit (AiRGB),
> pitch 2560
> (*) FBDev/Surface: Allocated 640x480 32 bit AiRGB buffer (index 0) at offset
> 0 and pitch 2560.
> -- calling: osdLayer->SetConfiguration(osdLayerConfiguration)
> (*) FBDev/Surface: Allocated 1024x768 32 bit AiRGB buffer (index 0) at offset
> 0 and pitch 2560.
>
> That's interesting 1024 width, 32 bit AiRGB and pitch 2560 ;-) .
>
> (*) FBDev/Mode: Setting 1024x768 AiRGB
> (*) FBDev/Mode: Switched to 1024x768 (virtual 1024x1536) at 32 bit (AiRGB),
> pitch 4096
> (*) FBDev/Surface: Allocated 1024x768 32 bit AiRGB buffer (index 1) at offset
> 3145728 and pitch 4096.
> -- DONE
> [softdevice] Subplugin successfully opend
> [softdevice] Video Out seems to be OK
> [softdevice] Initializing Audio Out
> [softdevice] Audio out seems to be OK
> [softdevice] A/V devices initialized, now initializing MPEG2 Decoder
> [DFB++] No SB , pitch = 2560
> [DFB++] No SB , pitch = 4096
> [DFB++] No SB , pitch = 2560
> [DFB++] No SB , pitch = 4096
>
Attached diff fixes this by using the default resolution
from dfb_config if it is set. Pixelformat is already selected
by dfb_config if it is set.
--
Stefan Lucke
diff --git a/systems/fbdev/fbdev.c b/systems/fbdev/fbdev.c
index d709cb3..e5d4ca6 100644
--- a/systems/fbdev/fbdev.c
+++ b/systems/fbdev/fbdev.c
@@ -1105,9 +1105,10 @@ primaryInitLayer( CoreLayer *layer,
config->flags = DLCONF_WIDTH | DLCONF_HEIGHT |
DLCONF_PIXELFORMAT | DLCONF_BUFFERMODE;
config->buffermode = DLBM_FRONTONLY;
- config->width = default_mode->xres;
- config->height = default_mode->yres;
-
+ config->width = (dfb_config->mode.width) ?
+ dfb_config->mode.width : default_mode->xres;
+ config->height = (dfb_config->mode.height) ?
+ dfb_config->mode.height : default_mode->yres;
if (dfb_config->mode.format)
config->pixelformat = dfb_config->mode.format;
else
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users