But I still confused. This is my steps to use SetVideoMode

1, initialize video mode to 1920 x 1080
2, initialize osd (or frame buffer)
3, create DFB
4, create the primary surface.
5, blit an image to primary surface.

6, initialize video mode to 1280 x 720
7, call SetVideoMode to set primary surface to 1280 x 720
8, blit the image to primary surface again.

My questions:
1, If in the primary surface is not only an image, but more complex UI. How can it be displayed immediately? 2, Does it mean I have to hold a surface to prepare all the UI, and blit it to primary when needed? It's not make sense, because primary can be a double buffer surface and always blit the changing to the back buffer

Thanks for your comments.

Regards!

Justin



On 2010-2-9 8:53, Justin Hou wrote:
Hi, Niels,
    Oh, I get it. Thanks.
I'm working on an embedded system. If it works, I could ask the system guys create this file.
    Regards.
-Justin

On 2010-2-8 21:56, Niels Roest wrote:
Hi Justin,

/etc/fb.modes is not part of DirectFB, but of the generic framebuffer framework of linux. on my system I can do "man fb.modes" and get an explanation of the contents.

Greets
Niels

Justin Hou wrote:
Hi, guys,

I'm trying to use SetVideoMode interface, to change the video mode dynamically, but failed. After some tracing, I found a file named /etc/fb.modes is needed. I think I should create this file and describe what kind of modes my chip supports.
    Could someone give me a simple about this file?
    Thanks very much!

-Justin

    _______________________________________________
    directfb-dev mailing list
    directfb-dev@directfb.org <mailto:directfb-dev@directfb.org>
    http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev



------------------------------------------------------------------------

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev



_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to