aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-01-14 18:39:12 +1000
committerinmarket <andrewh@inmarket.com.au>2015-01-14 18:39:12 +1000
commit8b221b803aa56b78e8c898402df26f96a130c712 (patch)
tree8c6dbc463542e1029c694925bc3b3dff742b8d03 /src
parentb68cfa0c2978eff6eb4362d94da3b53f9b37e6b9 (diff)
downloaduGFX-8b221b803aa56b78e8c898402df26f96a130c712.tar.gz
uGFX-8b221b803aa56b78e8c898402df26f96a130c712.tar.bz2
uGFX-8b221b803aa56b78e8c898402df26f96a130c712.zip
Compile fix for default orientation with pixmaps.
Diffstat (limited to 'src')
-rw-r--r--src/gdisp/gdisp_gdisp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gdisp/gdisp_gdisp.c b/src/gdisp/gdisp_gdisp.c
index 00003e2f..8910bcf1 100644
--- a/src/gdisp/gdisp_gdisp.c
+++ b/src/gdisp/gdisp_gdisp.c
@@ -651,8 +651,10 @@ void _gdispPostInitDriver(GDriver *g) {
// Set orientation, clip
#if defined(GDISP_DEFAULT_ORIENTATION) && GDISP_NEED_CONTROL && GDISP_HARDWARE_CONTROL
- // Pixmaps should stay in their created orientation (at least initially)
- if (!(gvmt(gd)->flags & GDISP_VFLG_PIXMAP))
+ #if GDISP_NEED_PIXMAP
+ // Pixmaps should stay in their created orientation (at least initially)
+ if (!(gvmt(gd)->d.flags & GDISP_VFLG_PIXMAP))
+ #endif
gdispGControl(gd, GDISP_CONTROL_ORIENTATION, (void *)GDISP_DEFAULT_ORIENTATION);
#endif
#if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP