/* dfb includes */
#include <directfb.h>
+#define MY_FONT_HEIGHT 48
+
/* global stuff */
/* well ... */
static IDirectFB *dfb = NULL;
-/* surface */
static IDirectFBSurface *primary = NULL;
static int screen_width = 0;
static int screen_height = 0;
+
static IDirectFBSurface *logo = NULL;
+
+static IDirectFBFont *font = NULL;
+static char *text_top="Internet Video / Audio Conferencing"
+
/* image to load */
char dfb_image[]="./images/ivac_logo.png";
int main (int argc, char **argv) {
int i;
+ DFBFontDescription font_desc;
DFBSurfaceDescription dsc;
/* image provider */
IDirectFBImageProvider *provider;
dfb->CreateSurface(dfb,&dsc,&logo);
/* render image */
provider->RenderTo(provider,logo,NULL);
-
provider->Release(provider);
+ /* create font */
+ font_dsc.flags=DFDESC_HEIGHT;
+ font_dsc.height=MY_FONT_HEIGHT;
+
+
+
/* slide logo */
for(i = -dsc.width; i < screen_width; i++) {
/* clear screen */