Hmm....
SetConfiguration defines the configuration of the layer. This is not
always 100% the location of the layer on the screen:
If the layer does not support screen positioning and scaling, than
"SetConfiguration" automatically determines these parameters, but in
your case the layer probably does support this. Then, SetConfiguration
just defines the pixel size of the connected surface.
Please try IDirectFBDisplayLayer::SetScreenPosition or
IDirectFBDisplayLayer::SetScreenRectangle, or maybe SetSourceRenctangle
but I think not.
hth
Niels
[email protected] wrote:
OK.
super_interface->GetScreen(super_interface, 0, &screen); + error check
screen->GetSize(screen, &width, &height); + error check
width is equal 1280
height is equal 720
/* ( @1) */
"osd_layer_config.width = 1280;"
"gfx1_layer_config.width = 1280;"
osd_layer->SetConfiguration(osd_layer, &osd_layer_config); + error check
gfx1_layer->SetConfiguration(gfx1_layer, &gfx1_layer_config); + error
check
osd_layer->GetSurface ( osd_layer, &osd_surface ); + error check
gfx1_layer->GetSurface ( gfx_layer, &gfx1_surface ); + error check
video0_layer->GetSurface ( video0_layer, &video0_surface ); + error check
video1_layer->GetSurface ( video1_layer, &video1_surface ); + error check
/* (@2) */
osd_surface->GetSize( osd_surface, &x, &y ); + error check
gfx1_surface->GetSize( gfx1_surface, &x, &y ); + error check
video0_surface->GetSize( video0_surface, &x, &y ); + error check
video1_surface->GetSize( video1_surface, &x, &y ); + error check
So.
If I do not write (@1) then in (@2) I have:
720-720
720-720
1280-720
1280-720
If I write (@1) then in (@2) I have:
1280-720
1280-720
1280-720
1280-720
But in both cases if I draw rectangle on osd_surface of width eg 500,
it is drawn the same size.
I thought if I change x resolution from 720 to 1280 and draw rectangle
of width 500 it will be shorter in X axis for resolution 1280, but it
is not.
What bothers me is that if I draw rectangle of "screen width" (1280),
in booth cases it is bigger then screen, and to fit it to screen I
need to draw it 720 pixels width.
----------------------------------------------------------------------
Nie boisz sie wampirow!
A wiêc Graj >>> http://link.interia.pl/f2390
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users