From 4786d0fcf423bb1e64a18c6570a277466cf00a17 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 3 Dec 2008 00:33:59 +0000 Subject: Positioning depends on width of border git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1403 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxtk/nxtk_setsubwindows.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nuttx') diff --git a/nuttx/graphics/nxtk/nxtk_setsubwindows.c b/nuttx/graphics/nxtk/nxtk_setsubwindows.c index a2c8e4281..8925ebf47 100644 --- a/nuttx/graphics/nxtk/nxtk_setsubwindows.c +++ b/nuttx/graphics/nxtk/nxtk_setsubwindows.c @@ -113,8 +113,13 @@ void nxtk_setsubwindows(FAR struct nxtk_framedwindow_s *fwnd) /* Position the toolbar and client window just under the top border */ - tbtop += (bdrheight / 2); +#if CONFIG_NXTK_BORDERWIDTH > 1 + tbtop += CONFIG_NXTK_BORDERWIDTH - 1; + fwtop = tbtop + 1; +#else + tbtop += CONFIG_NXTK_BORDERWIDTH; fwtop = tbtop; +#endif /* Is it big enough for any part of the toolbar? */ -- cgit v1.2.3