summaryrefslogtreecommitdiffstats
path: root/ui/twin/pbt-scr.c
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2012-03-30 17:54:11 -0700
committerGeoff Levand <geoff@infradead.org>2012-03-30 18:10:10 -0700
commit22f215ac671e2cf9a7fa0f5f98ff5334713c6b24 (patch)
treed0bf0989aad08e3f660c214092a0ebe0978b8563 /ui/twin/pbt-scr.c
parentf4c558294089f7449e6f536300ddd1aa94d2cf20 (diff)
downloadtalos-petitboot-22f215ac671e2cf9a7fa0f5f98ff5334713c6b24.tar.gz
talos-petitboot-22f215ac671e2cf9a7fa0f5f98ff5334713c6b24.zip
Increase X screen size
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'ui/twin/pbt-scr.c')
-rw-r--r--ui/twin/pbt-scr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/twin/pbt-scr.c b/ui/twin/pbt-scr.c
index 3d10b95..3a5a70b 100644
--- a/ui/twin/pbt-scr.c
+++ b/ui/twin/pbt-scr.c
@@ -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
OpenPOWER on IntegriCloud