nuttx-apps/graphics/nxglyphs/include/cursor-zoomout-16x16.h
Alin Jerpelea d60fb1168d nxstyle fixes
fixes for nxstyle errors reported by CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2022-04-22 11:14:17 +08:00

89 lines
2.8 KiB
C

/***************************************************************************
* apps/graphics/nxglyphs/include/cursor-zoomout-16x16.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
***************************************************************************/
/***************************************************************************
* Included Files
***************************************************************************/
#include <nuttx/config.h>
#include <stdint.h>
#include <nuttx/video/rgbcolors.h>
#include <nuttx/nx/nxcursor.h>
#if CONFIG_NXWIDGETS_BPP == 8
# define FGCOLOR1 RGB8_WHITE
# define FGCOLOR2 RGB8_BLACK
# define FGCOLOR3 RGB8_GRAY
#elif CONFIG_NXWIDGETS_BPP == 16
# define FGCOLOR1 RGB16_WHITE
# define FGCOLOR2 RGB16_BLACK
# define FGCOLOR3 RGB16_GRAY
#elif CONFIG_NXWIDGETS_BPP == 24 || CONFIG_NXWIDGETS_BPP == 32
# define FGCOLOR1 RGB24_WHITE
# define FGCOLOR2 RGB24_BLACK
# define FGCOLOR3 RGB24_GRAY
#else
# error "Pixel depth not supported (CONFIG_NXWIDGETS_BPP)"
#endif
static const uint8_t g_zoomOutImage[] =
{
0x00, 0xaa, 0x00, 0x00, /* Row 0 */
0x0a, 0xd7, 0xa0, 0x00, /* Row 1 */
0x29, 0x55, 0x68, 0x00, /* Row 2 */
0x25, 0x55, 0x58, 0x00, /* Row 3 */
0xb5, 0x55, 0x5e, 0x00, /* Row 4 */
0x95, 0xff, 0x56, 0x00, /* Row 5 */
0x95, 0xaa, 0xd6, 0x00, /* Row 6 */
0xb5, 0x55, 0x5e, 0x00, /* Row 7 */
0x25, 0x55, 0x58, 0x00, /* Row 8 */
0x29, 0x55, 0x7a, 0x00, /* Row 9 */
0x0a, 0xd7, 0xb7, 0x80, /* Row 10 */
0x00, 0xaa, 0x2d, 0xe0, /* Row 11 */
0x00, 0x00, 0x0b, 0x78, /* Row 12 */
0x00, 0x00, 0x02, 0xde, /* Row 13 */
0x00, 0x00, 0x00, 0xb6, /* Row 14 */
0x00, 0x00, 0x00, 0x2a, /* Row 15 */
};
const struct nx_cursorimage_s g_zoomOutCursor =
{
.size =
{
.w = 16,
.h = 16
},
.color1 =
{
FGCOLOR1
},
.color2 =
{
FGCOLOR1
},
.color3 =
{
FGCOLOR3
},
.image = g_zoomOutImage
};