Hi there!
I couldn't find an answer to my problem in the archives, so I
subscribed to the list.
Background:
I downloaded the GTK+-DirectFB release and applied a patch for making
it work on the G400's CRTC2, make && make install. I then went on
compiling the HelloWorld example app in the GTK+ examples/ folder
(changed the target to gtk+-directfb).
Problem:
The app starts allright, but all I get is white stripes on my TV, and
not a window with a button and some text in it. What might be wrong?
The patch I'm using looks like this:
diff -u /usr/src/directfb/gdk-directfb-2002-08-26/gdkmain-directfb.c ./
gdkmain-directfb.c
--- /usr/src/directfb/gdk-directfb-2002-08-26/gdkmain-directfb.c
2002-08-15 19:54:51.000000000 -0400
+++ ./gdkmain-directfb.c 2002-12-15 06:56:00.000000000 -0500
@@ -82,6 +82,11 @@
for (i = argc; i < argc_orig; i++)
argv[i] = NULL;
+DirectFBSetOption( "no-cursor", "" );
+DirectFBSetOption( "bg-color", "00000000" );
+DirectFBSetOption( "matrox-crtc2", "" );
+DirectFBSetOption( "matrox-tv-standard", "pal" );
+
if (ret == DFB_OK)
ret = DirectFBCreate (&DirectFB);
@@ -93,7 +98,23 @@
return FALSE;
}
+#if 0
ret = DirectFB->GetDisplayLayer (DirectFB, DLID_PRIMARY, &
DisplayLayer);
+#else
+ ret = DirectFB->GetDisplayLayer (DirectFB, 2, &DisplayLayer);
+ if (ret == DFB_OK) {
+
+ DFBDisplayLayerConfig dlc;
+ DFBResult ret2;
+
+ dlc.flags = DLCONF_PIXELFORMAT;
+ dlc.pixelformat = DSPF_RGB32;
+ g_warning ("setting pixelformat to %x", dlc.pixelformat);
+ ret2 = DisplayLayer->SetConfiguration (DisplayLayer, &dlc);
+ if (ret2 != DFB_OK)
+ DirectFBError ("gdk_windowing_init_check: SetConfiguration",
ret2);
+ }
+#endif
if (ret != DFB_OK)
{
DirectFBError ("gdk_windowing_init_check: GetDisplayLayer",
ret);
Thanks in advance,
--
Mikael Jansson
http://dundermusen.net
--
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with
"unsubscribe directfb-dev" as subject.