From 8b221b803aa56b78e8c898402df26f96a130c712 Mon Sep 17 00:00:00 2001 From: inmarket Date: Wed, 14 Jan 2015 18:39:12 +1000 Subject: [PATCH] Compile fix for default orientation with pixmaps. --- src/gdisp/gdisp_gdisp.c | 6 ++++-- 1 file 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