Hi Niels,

Thank you very much, it turns out that my AVR32 build didn't install the 
libraries into /lib, they had been put in /usr/lib - but only some of 
them, not all of them! That's the fault of the atmel config I think.

I have only a monochrome framebuffer module in 1-bit mode (ie. it 
accepts pixels as one-bit values packed 8 into a byte), and I'm 
wondering whether DirectFB supports this, or whether I would need to 
modify my module to take 8-bit pixel values (or maybe more)?
The reason I ask, is because I have this code, and my module's blit 
debug shows that it is sending zero-filled buffers to be sent to my 
framebuffer module. I assume this example is ok, as I took the body of 
it from the website.

...
    font_dsc.flags = DFDESC_HEIGHT;
    font_dsc.height = 16;
    DFBCHECK (dfb->CreateFont (dfb, "/test/FreeMono.ttf", &font_dsc, 
&font));     
   
    DFBCHECK (primary->SetFont (primary, font));
    DFBCHECK (font->GetStringWidth (font, text, -1, &width));
    screen_width = 128;
    screen_height = 64;
    for (i = screen_width; i > -width; i--)
    {
          DFBCHECK (primary->SetColor (primary, 0x0, 0x0, 0x0, 0xff));
          DFBCHECK (primary->FillRectangle (primary, 0, 0, 8, 8));
         
          DFBCHECK (primary->SetColor (primary, 0xff, 0xff, 0xff, 0xff));
          DFBCHECK (primary->FillRectangle (primary, 10, 10, 8, 8));
         
          DFBCHECK (primary->DrawString (primary, text, -1, i, 
screen_height / 2, DSTF_LEFT));
          DFBCHECK (primary->Flip (primary, NULL, DSFLIP_WAITFORSYNC));
    }   


Kind regards,
Peter
   
_______________________________________________
directfb-users mailing list
directfb-users@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to