From dd4ade3867c6e89dc0466ed23fab66272fb0156c Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 3 Dec 2008 00:30:09 +0000 Subject: [PATCH] Fix: height, not width git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1401 42af7a65-404d-4744-a932-0658087f49c3 --- graphics/nxtk/nxtk_setsize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/nxtk/nxtk_setsize.c b/graphics/nxtk/nxtk_setsize.c index e2917fc34a..f91aa7e0e5 100644 --- a/graphics/nxtk/nxtk_setsize.c +++ b/graphics/nxtk/nxtk_setsize.c @@ -107,7 +107,7 @@ int nxtk_setsize(NXTKWINDOW hfwnd, FAR struct nxgl_size_s *size) /* Add the sizes need for the toolbar and the borders */ newsize.w = size->w + 2 * CONFIG_NXTK_BORDERWIDTH; - newsize.h = size->w + fwnd->tbheight + 2 * CONFIG_NXTK_BORDERWIDTH; + newsize.h = size->h + fwnd->tbheight + 2 * CONFIG_NXTK_BORDERWIDTH; /* Then set the window size */