+ // FIXME-UTF8: This code is taken from wxGTK and duplicated here. This
+ // is just a temporary fix to make wxDFB compile in Unicode
+ // build, the real fix is to change Initialize()'s signature
+ // to use char* on Unix.
+#if wxUSE_UNICODE
+ // DirectFBInit() wants UTF-8, not wchar_t, so convert
+ int i;
+ char **argvDFB = new char *[argc + 1];
+ for ( i = 0; i < argc; i++ )
+ {
+ argvDFB[i] = strdup(wxConvUTF8.cWX2MB(argv[i]));
+ }
+
+ argvDFB[argc] = NULL;
+
+ int argcDFB = argc;
+
+ if ( !wxDfbCheckReturn(DirectFBInit(&argcDFB, &argvDFB)) )