diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-12-03 18:19:10 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-12-03 18:19:10 -0600 |
commit | 80ebe5194e912fd1de32489da37a5bd916565672 (patch) | |
tree | 345a8c7cca2517beee8e9f0549cec74ccb23e720 /apps/graphics/traveler/include/trv_graphics.h | |
parent | 918628fa24073271bc77198922247bab9eeab4d3 (diff) | |
download | nuttx-80ebe5194e912fd1de32489da37a5bd916565672.tar.gz nuttx-80ebe5194e912fd1de32489da37a5bd916565672.tar.bz2 nuttx-80ebe5194e912fd1de32489da37a5bd916565672.zip |
Correct graphics scaling logic
Diffstat (limited to 'apps/graphics/traveler/include/trv_graphics.h')
-rw-r--r-- | apps/graphics/traveler/include/trv_graphics.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/graphics/traveler/include/trv_graphics.h b/apps/graphics/traveler/include/trv_graphics.h index 69790e627..b51a8d4fc 100644 --- a/apps/graphics/traveler/include/trv_graphics.h +++ b/apps/graphics/traveler/include/trv_graphics.h @@ -86,14 +86,16 @@ struct trv_graphics_info_s NXHANDLE hnx; /* The connection handle */ NXHANDLE bgwnd; /* Background window handle */ #else - trv_coord_t stride; /* Length of a line in bytes */ + trv_coord_t hoffset; /* Horizontal to start of data (in columns) */ + trv_coord_t voffset; /* Offset to start of data (in rows) */ + trv_coord_t stride; /* Length of a line (in bytes) */ #endif trv_coord_t hwwidth; /* Display width (pixels) */ trv_coord_t hwheight; /* Display height (rows) */ trv_coord_t swwidth; /* Software render width (pixels) */ trv_coord_t swheight; /* Software render height height (rows) */ - uint8_t vscale; /* Log2 vertical image scale factor */ - uint8_t hscale; /* Log2 horizontal image scale factor */ + uint8_t vscale; /* Vertical image scale factor */ + uint8_t hscale; /* Horizontal image scale factor */ struct trv_palette_s palette; /* Color palette */ FAR dev_pixel_t *hwbuffer; /* Hardware frame buffer */ FAR trv_pixel_t *swbuffer; /* Software render buffer */ |