Simplify the DirectFBInit call

Patch by Andre Draszik, bug 609172
This commit is contained in:
Matthias Clasen 2010-02-23 13:06:03 -05:00
parent 3d66034d7d
commit 2dc9298b41

View File

@ -66,15 +66,12 @@ GdkDisplay * gdk_display_open (const gchar *display_name)
IDirectFBInputDevice *keyboard;
DFBResult ret;
int argc = 0;
char **argv = NULL;
if (_gdk_display)
{
return GDK_DISPLAY_OBJECT(_gdk_display); /* single display only */
}
ret = DirectFBInit (&argc,&argv);
ret = DirectFBInit (NULL, NULL);
if (ret != DFB_OK)
{
DirectFBError ("gdk_display_open: DirectFBInit", ret);