Increase X screen size
[petitboot] / ui / twin / pbt-scr.c
index 8d6c498ec710cf1a38a0f7552d81930b8d8beef0..3a5a70bc48128662170cc0e393d7a37b952b8b70 100644 (file)
@@ -180,7 +180,7 @@ twin_pixmap_t *pbt_background_load(twin_screen_t *tscreen,
 const char *pbt_icon_chooser(const char *hint)
 {
        if (strstr(hint, "net"))
-               return PB_ARTWORK_PATH "/network.png";
+               return PB_ARTWORK_PATH "/network-wired.png";
 
        return NULL;
 }
@@ -378,8 +378,6 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx, enum pbt_twin_backend backend,
        int waiter_fd = -1;
 
        assert(backend && backend < 3);
-       assert(width > 100);
-       assert(height > 100);
 
        if (!scr) {
                pb_log("%s: alloc pbt_scr failed.\n", __func__);
@@ -394,6 +392,9 @@ struct pbt_scr *pbt_scr_init(void *talloc_ctx, enum pbt_twin_backend backend,
 
        if (backend == pbt_twin_x11) {
                pb_log("%s: using twin x11 backend.\n", __func__);
+               assert(width > 100);
+               assert(height > 100);
+
 #if !defined(HAVE_LIBTWIN_TWIN_X11_H)
                assert(0);
 #else