mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 13:52:22 +08:00
graphics/: Clean up some C and Kconfig comments. Remove Kconfig dependency on EXPERIMENTAL.
This commit is contained in:
+3
-5
@@ -77,11 +77,10 @@ config NX_NOCURSOR
|
||||
|
||||
config NX_SWCURSOR
|
||||
bool "Software cursor support"
|
||||
depends on !NX_LCDDRIVER && NX_DISABLE_1BPP && NX_DISABLE_2BPP && NX_DISABLE_4BPP && !BUILD_KERNEL && EXPERIMENTAL
|
||||
depends on !NX_LCDDRIVER && NX_DISABLE_1BPP && NX_DISABLE_2BPP && NX_DISABLE_4BPP && !BUILD_KERNEL
|
||||
---help---
|
||||
Software cursors are a work in progress hence the EXPERIMENTAL
|
||||
dependency. The other dependencies are due to implemented
|
||||
capabilities. This assumes that:
|
||||
Software cursor support has several dependencies are due to un-
|
||||
implemented cursor capabilities. This assumes the following:
|
||||
|
||||
1. You are using a framebuffer hardware interface. This is
|
||||
because the logic to implement this feature on top of the LCD
|
||||
@@ -96,7 +95,6 @@ config NX_SWCURSOR
|
||||
generally available. In that case, we could keep the image in
|
||||
a shared memory region or perhaps copy the image into a kernel
|
||||
internal buffer. Neither of those are implemented.
|
||||
4. Only a single color plane is supported at present.
|
||||
|
||||
config NX_HWCURSOR
|
||||
bool "Software cursor support"
|
||||
|
||||
@@ -161,8 +161,8 @@ void nxbe_cursor_enable(FAR struct nxbe_state_s *be, bool enable)
|
||||
* Description:
|
||||
* Set the cursor image.
|
||||
*
|
||||
* The image is provided a a 2-bits-per-pixel image. The two bit incoding
|
||||
* is as followings:
|
||||
* The image is provided a a 2-bits-per-pixel image. The two bit encoding
|
||||
* is as follows:
|
||||
*
|
||||
* 00 - The transparent background
|
||||
* 01 - Color1: The main color of the cursor
|
||||
|
||||
@@ -79,13 +79,12 @@ extern "C"
|
||||
* a process space and will not be generally available. In that case,
|
||||
* we could keep the image in a shared memory region or perhaps copy the
|
||||
* image into a kernel internal buffer. Neither of those are implemented.
|
||||
* 4. Only a single color plane is supported at present.
|
||||
*/
|
||||
|
||||
#if (defined(CONFIG_NX_SWCURSOR) && \
|
||||
(defined(CONFIG_NX_LCDDRIVER) || !defined(CONFIG_NX_DISABLE_1BPP) || \
|
||||
!defined(CONFIG_NX_DISABLE_2BPP) || !defined(CONFIG_NX_DISABLE_4BPP) || \
|
||||
defined(CONFIG_BUILD_KERNEL) || CONFIG_NX_NPLANES > 1))
|
||||
defined(CONFIG_BUILD_KERNEL)))
|
||||
# undef CONFIG_NX_NOCURSOR
|
||||
# undef CONFIG_NX_SWCURSOR
|
||||
# define CONFIG_NX_NOCURSOR 1
|
||||
@@ -143,8 +142,8 @@ int nxcursor_enable(NXHANDLE hnd, bool enable);
|
||||
* Description:
|
||||
* Set the cursor image.
|
||||
*
|
||||
* The image is provided a a 2-bits-per-pixel image. The two bit incoding
|
||||
* is as followings:
|
||||
* The image is provided a a 2-bits-per-pixel image. The two bit encoding
|
||||
* is as follows:
|
||||
*
|
||||
* 00 - The transparent background.
|
||||
* 01 - Color1: The main color of the cursor.
|
||||
|
||||
@@ -97,8 +97,8 @@ int nxcursor_enable(NXHANDLE hnd, bool enable)
|
||||
* Description:
|
||||
* Set the cursor image.
|
||||
*
|
||||
* The image is provided a a 2-bits-per-pixel image. The two bit incoding
|
||||
* is as followings:
|
||||
* The image is provided a a 2-bits-per-pixel image. The two bit encoding
|
||||
* is as follows:
|
||||
*
|
||||
* 00 - The transparent background
|
||||
* 01 - Color1: The main color of the cursor
|
||||
|
||||
Reference in New Issue
Block a user