mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-21 14:24:19 +00:00
Simplify the DirectFBInit call
Patch by Andre Draszik, bug 609172
This commit is contained in:
parent
3d66034d7d
commit
2dc9298b41
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user