]> git.ozlabs.org Git - petitboot/commitdiff
Increase X screen size
authorGeoff Levand <geoff@infradead.org>
Sat, 31 Mar 2012 00:54:11 +0000 (17:54 -0700)
committerGeoff Levand <geoff@infradead.org>
Sat, 31 Mar 2012 01:10:10 +0000 (18:10 -0700)
Signed-off-by: Geoff Levand <geoff@infradead.org>
ui/twin/main-generic.c
ui/twin/pbt-scr.c

index 1e665b38384a9c874ce8a86298f287c54f6ff530..91a525b9f82cf9106b5f04b3b9f315d5f4e63ccd 100644 (file)
@@ -330,7 +330,7 @@ int main(int argc, char *argv[])
                return EXIT_FAILURE;
        }
 
-       client = pbt_client_init(opts.backend, 900, 300, kexec_cb,
+       client = pbt_client_init(opts.backend, 1024, 640, kexec_cb,
                opts.start_daemon, opts.dry_run);
 
        if (!client) {
index 3d10b9590a8c6e783fb603722f53d2781c39d864..3a5a70bc48128662170cc0e393d7a37b952b8b70 100644 (file)
@@ -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