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-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users