From 2d4cd8d1a3d5187734fabb2fcde13f1b2848ce64 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 2 May 2012 22:03:05 +0000 Subject: [PATCH] NxWM updates (with some NX and NxWidget fixes too) git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4689 42af7a65-404d-4744-a932-0658087f49c3 --- ChangeLog | 7 ++++++- configs/sim/README.txt | 8 +++++++- configs/sim/nxwm/defconfig | 4 ++-- graphics/nxtk/nxtk_bitmaptoolbar.c | 8 ++++---- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index a01b93c44e..84f349a469 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2696,4 +2696,9 @@ * include/cxx/cunistd: C++ header file to make sure that everything in unistd.h is in the std:: namespace. * configs/sim/nxwm: Added a configuration for testing the NuttX Window Manager - (NxWM) \ No newline at end of file + (NxWM) + * fs/fs_fcntl.h: On success, always returned OK. However, some fcntl commands + require returning other values on success. + * Various files. Fix warnings about variables that were initialized by not used. + * configs/sim/*/defconfig: Changes to build a 32-bit simulation on a 32-bit + platform did not make into all of the Make.defs files. diff --git a/configs/sim/README.txt b/configs/sim/README.txt index f02f442581..4886a42951 100644 --- a/configs/sim/README.txt +++ b/configs/sim/README.txt @@ -111,11 +111,17 @@ http://tech.groups.yahoo.com/group/nuttx/files. Compiler differences -------------------- -operator new +operator new: Problem: "'operator new' takes size_t ('...') as first parameter" Workaround: Add -fpermissive to the compilation flags +Continue up_setjmp() issues: + + With some newer compilers, I am now getting segmentation faults in + up_setjmp.S (even when built with the -m32 option). I have not looked into + this yet. + Stack Size Issues ----------------- When you run the NuttX simulation, it uses stacks allocated by NuttX from the diff --git a/configs/sim/nxwm/defconfig b/configs/sim/nxwm/defconfig index 74b5aea152..5fead7bb84 100644 --- a/configs/sim/nxwm/defconfig +++ b/configs/sim/nxwm/defconfig @@ -524,8 +524,8 @@ CONFIG_NX_PACKEDMSFIRST=n CONFIG_NX_MOUSE=y CONFIG_NX_KBD=y #CONFIG_NXTK_BORDERWIDTH=4 -#CONFIG_NXTK_BORDERCOLOR1 -#CONFIG_NXTK_BORDERCOLOR2 +CONFIG_NXTK_BORDERCOLOR1=0x00a9a9a9 +CONFIG_NXTK_BORDERCOLOR2=0x00696969 CONFIG_NXTK_AUTORAISE=n CONFIG_NXFONT_SANS22X29=n CONFIG_NXFONT_SANS23X27=y diff --git a/graphics/nxtk/nxtk_bitmaptoolbar.c b/graphics/nxtk/nxtk_bitmaptoolbar.c index 6a2063a264..50bd5aff40 100644 --- a/graphics/nxtk/nxtk_bitmaptoolbar.c +++ b/graphics/nxtk/nxtk_bitmaptoolbar.c @@ -1,8 +1,8 @@ /**************************************************************************** * graphics/nxtk/nxtk_bitmaptoolbar.c * - * Copyright (C) 2008-2009 Gregory Nutt. All rights reserved. - * Author: Gregory Nutt + * Copyright (C) 2008-2009, 2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -122,7 +122,7 @@ int nxtk_bitmaptoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *dest, * Temporarily, position the origin in absolute screen coordinates */ - nxgl_vectoradd(&wndorigin, origin, &fwnd->fwrect.pt1); + nxgl_vectoradd(&wndorigin, origin, &fwnd->tbrect.pt1); /* Then move the origin so that is relative to the containing window, not the * client subwindow @@ -132,6 +132,6 @@ int nxtk_bitmaptoolbar(NXTKWINDOW hfwnd, FAR const struct nxgl_rect_s *dest, /* Then copy the bitmap */ - nx_bitmap((NXWINDOW)hfwnd, &clipdest, src, origin, stride); + nx_bitmap((NXWINDOW)hfwnd, &clipdest, src, &wndorigin, stride); return OK; }