summaryrefslogtreecommitdiff
path: root/apps/graphics/traveler/include/trv_graphics.h
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-12-04 08:00:41 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-12-04 08:00:41 -0600
commite29f159be33872667d4863f685c324cb3034d7dd (patch)
tree79c17cae2c227f701b734dc7bb06084fcb9a7d17 /apps/graphics/traveler/include/trv_graphics.h
parent80ebe5194e912fd1de32489da37a5bd916565672 (diff)
downloadnuttx-e29f159be33872667d4863f685c324cb3034d7dd.tar.gz
nuttx-e29f159be33872667d4863f685c324cb3034d7dd.tar.bz2
nuttx-e29f159be33872667d4863f685c324cb3034d7dd.zip
Correct some image scaling
Diffstat (limited to 'apps/graphics/traveler/include/trv_graphics.h')
-rw-r--r--apps/graphics/traveler/include/trv_graphics.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/apps/graphics/traveler/include/trv_graphics.h b/apps/graphics/traveler/include/trv_graphics.h
index b51a8d4fc..cb0684e9b 100644
--- a/apps/graphics/traveler/include/trv_graphics.h
+++ b/apps/graphics/traveler/include/trv_graphics.h
@@ -86,16 +86,15 @@ struct trv_graphics_info_s
NXHANDLE hnx; /* The connection handle */
NXHANDLE bgwnd; /* Background window handle */
#else
- 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) */
+ trv_coord_t xoffset; /* Horizontal offset to start of data (pixels) */
+ trv_coord_t yoffset; /* Vertical offset to start of data (rows) */
+ trv_coord_t stride; /* Length of a line (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; /* Vertical image scale factor */
- uint8_t hscale; /* Horizontal image scale factor */
+ trv_coord_t xres; /* Physical display width (pixels) */
+ trv_coord_t yres; /* Physical display height (rows) */
+ trv_coord_t imgwidth; /* Width of visible display region (bytes) */
+ uint8_t xscale; /* Horizontal image scale factor */
+ uint8_t yscale; /* Vertical 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 */