apps/nxglyphs/include/: Remove stride from cursor structure
This commit is contained in:
parent
35fb270090
commit
7a7e86ac6c
@ -59,7 +59,6 @@ const struct cursor_image_s g_arrow1Cursor
|
|||||||
{
|
{
|
||||||
.width = 30
|
.width = 30
|
||||||
.height = 30
|
.height = 30
|
||||||
.stride = 8,
|
|
||||||
.color1 =
|
.color1 =
|
||||||
{
|
{
|
||||||
FGCOLOR1
|
FGCOLOR1
|
||||||
|
@ -59,7 +59,6 @@ const struct cursor_image_s g_arrow2Cursor
|
|||||||
{
|
{
|
||||||
.width = 30
|
.width = 30
|
||||||
.height = 30
|
.height = 30
|
||||||
.stride = 8,
|
|
||||||
.color1 =
|
.color1 =
|
||||||
{
|
{
|
||||||
FGCOLOR1
|
FGCOLOR1
|
||||||
|
@ -59,7 +59,6 @@ const struct cursor_image_s g_grabCursor
|
|||||||
{
|
{
|
||||||
.width = 25
|
.width = 25
|
||||||
.height = 30
|
.height = 30
|
||||||
.stride = 7,
|
|
||||||
.color1 =
|
.color1 =
|
||||||
{
|
{
|
||||||
FGCOLOR1
|
FGCOLOR1
|
||||||
|
@ -59,7 +59,6 @@ const struct cursor_image_s g_waitCursor
|
|||||||
{
|
{
|
||||||
.width = 23
|
.width = 23
|
||||||
.height = 30
|
.height = 30
|
||||||
.stride = 6,
|
|
||||||
.color1 =
|
.color1 =
|
||||||
{
|
{
|
||||||
FGCOLOR1
|
FGCOLOR1
|
||||||
|
@ -59,7 +59,6 @@ const struct cursor_image_s g_zoomInCursor
|
|||||||
{
|
{
|
||||||
.width = 30
|
.width = 30
|
||||||
.height = 30
|
.height = 30
|
||||||
.stride = 8,
|
|
||||||
.color1 =
|
.color1 =
|
||||||
{
|
{
|
||||||
FGCOLOR1
|
FGCOLOR1
|
||||||
|
@ -59,7 +59,6 @@ const struct cursor_image_s g_zoomOutCursor
|
|||||||
{
|
{
|
||||||
.width = 30
|
.width = 30
|
||||||
.height = 30
|
.height = 30
|
||||||
.stride = 8,
|
|
||||||
.color1 =
|
.color1 =
|
||||||
{
|
{
|
||||||
FGCOLOR1
|
FGCOLOR1
|
||||||
|
@ -98,7 +98,6 @@ int main(int argc, char **argv, char **envp)
|
|||||||
unsigned char r;
|
unsigned char r;
|
||||||
unsigned char g;
|
unsigned char g;
|
||||||
unsigned char b;
|
unsigned char b;
|
||||||
unsigned int stride;
|
|
||||||
uint32_t code;
|
uint32_t code;
|
||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
@ -178,16 +177,11 @@ int main(int argc, char **argv, char **envp)
|
|||||||
printf(" /* Row %d */\n", i);
|
printf(" /* Row %d */\n", i);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Stide assumes 2BPP */
|
|
||||||
|
|
||||||
stride = (2 * gimp_image.width + 7) >> 3;
|
|
||||||
|
|
||||||
printf("}\n\n");
|
printf("}\n\n");
|
||||||
printf("const struct cursor_image_s g_cursor\n");
|
printf("const struct cursor_image_s g_cursor\n");
|
||||||
printf("{\n");
|
printf("{\n");
|
||||||
printf(" .width = %u\n", gimp_image.width);
|
printf(" .width = %u\n", gimp_image.width);
|
||||||
printf(" .height = %u\n", gimp_image.height);
|
printf(" .height = %u\n", gimp_image.height);
|
||||||
printf(" .stride = %u,\n", stride);
|
|
||||||
printf(" .color1 =\n");
|
printf(" .color1 =\n");
|
||||||
printf(" {\n");
|
printf(" {\n");
|
||||||
printf(" FGCOLOR1\n");
|
printf(" FGCOLOR1\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user