9
0
Fork 0

Fix tiny drawing errors in frame

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1419 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2008-12-05 02:36:05 +00:00
parent 211eb4e759
commit 1379fe5ea1
2 changed files with 2 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -169,7 +169,7 @@ int nxtk_drawframe(FAR struct nxtk_framedwindow_s *fwnd,
*/
frame.pt1.y = 0;
frame.pt2.y = wndsize.h - 1;
frame.pt2.y = wndsize.h - 2;
frame.pt1.x = 0;
#if CONFIG_NXTK_BORDERWIDTH > 1
@ -226,7 +226,7 @@ int nxtk_drawframe(FAR struct nxtk_framedwindow_s *fwnd,
if (tbsize.h > 0)
{
frame.pt1.y = 0;
frame.pt2.y = CONFIG_NXTK_BORDERWIDTH + tbsize.h;
frame.pt2.y = CONFIG_NXTK_BORDERWIDTH + tbsize.h - 2;
frame.pt1.x = CONFIG_NXTK_BORDERWIDTH - 1;
frame.pt2.x = frame.pt1.x;