diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-03 00:33:59 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-03 00:33:59 +0000 |
commit | 4786d0fcf423bb1e64a18c6570a277466cf00a17 (patch) | |
tree | 3341ed68380b32bce08d9f21d0b9c5dc802d5421 | |
parent | 90f623d654165656a3885a3a562f15c5d8187690 (diff) | |
download | px4-nuttx-4786d0fcf423bb1e64a18c6570a277466cf00a17.tar.gz px4-nuttx-4786d0fcf423bb1e64a18c6570a277466cf00a17.tar.bz2 px4-nuttx-4786d0fcf423bb1e64a18c6570a277466cf00a17.zip |
Positioning depends on width of border
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1403 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/graphics/nxtk/nxtk_setsubwindows.c | 7 |
1 files changed, 6 insertions, 1 deletions
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? */ |