X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=ui%2Ftwin%2Fpbt-scr.c;h=e10cab10e9c9b817d8ae06a5c6a9da27b6c8fac7;hp=e093c3c66b13fcc28defaa3d8b882a3d8d746511;hb=ed8a3ad086e56fa40c72c531b3f563e35a7c0753;hpb=658d9e98eec02f92e3cf263a1bb27beb3d395b2f diff --git a/ui/twin/pbt-scr.c b/ui/twin/pbt-scr.c index e093c3c..e10cab1 100644 --- a/ui/twin/pbt-scr.c +++ b/ui/twin/pbt-scr.c @@ -15,8 +15,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" -#define _GNU_SOURCE +#endif + #include #include @@ -361,7 +363,7 @@ static int pbt_twin_waiter_cb(struct pbt_twin_ctx *twin_ctx) static void pbt_scr_destructor(struct pbt_scr *scr) { - pb_log("%s\n", __func__); + pb_debug("%s\n", __func__); twin_x11_destroy(scr->twin_ctx.x11); // FIXME: need cursor cleanup??? @@ -400,8 +402,8 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx, #if !defined(HAVE_LIBTWIN_TWIN_X11_H) assert(0); #else - scr->twin_ctx.x11 = twin_x11_create_ext(XOpenDisplay(0), width, - height, 0); + scr->twin_ctx.x11 = twin_x11_create_ext(XOpenDisplay(NULL), + width, height, 0); if (!scr->twin_ctx.x11) { pb_log("%s: twin_x11_create_ext failed.\n", __func__); @@ -409,7 +411,7 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx, goto fail_ctx_create; } - pb_log("%s: x11: %p\n", __func__, scr->twin_ctx.x11); + pb_debug("%s: x11: %p\n", __func__, scr->twin_ctx.x11); assert(scr->twin_ctx.x11->screen); scr->tscreen = scr->twin_ctx.x11->screen;