X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ui%2Fncurses%2Fnc-widgets.c;h=f82192939dd968d1dfd4ce2f889cbb382b1d6d8b;hb=a240e296ac2ecf8934f71cb23946fc77101cdfd6;hp=5592db9c7769a3c68fc03497776f469d208d0abc;hpb=5d955dcc4f9a699bc84fe25ff337d51103f845ac;p=petitboot diff --git a/ui/ncurses/nc-widgets.c b/ui/ncurses/nc-widgets.c index 5592db9..f821929 100644 --- a/ui/ncurses/nc-widgets.c +++ b/ui/ncurses/nc-widgets.c @@ -877,6 +877,10 @@ void widget_move(struct nc_widget *widget, int y, int x) widget->x = x; widget->y = y; + + if (x + widget->width > COLS) + pb_debug("%s: Widget at %d,%d runs over pad! (%d)", __func__, + y, x, x + widget->width); } int widget_height(struct nc_widget *widget)