Compile fix for default orientation with pixmaps.
This commit is contained in:
parent
b68cfa0c29
commit
8b221b803a
1 changed files with 4 additions and 2 deletions
|
@ -651,8 +651,10 @@ void _gdispPostInitDriver(GDriver *g) {
|
||||||
|
|
||||||
// Set orientation, clip
|
// Set orientation, clip
|
||||||
#if defined(GDISP_DEFAULT_ORIENTATION) && GDISP_NEED_CONTROL && GDISP_HARDWARE_CONTROL
|
#if defined(GDISP_DEFAULT_ORIENTATION) && GDISP_NEED_CONTROL && GDISP_HARDWARE_CONTROL
|
||||||
|
#if GDISP_NEED_PIXMAP
|
||||||
// Pixmaps should stay in their created orientation (at least initially)
|
// Pixmaps should stay in their created orientation (at least initially)
|
||||||
if (!(gvmt(gd)->flags & GDISP_VFLG_PIXMAP))
|
if (!(gvmt(gd)->d.flags & GDISP_VFLG_PIXMAP))
|
||||||
|
#endif
|
||||||
gdispGControl(gd, GDISP_CONTROL_ORIENTATION, (void *)GDISP_DEFAULT_ORIENTATION);
|
gdispGControl(gd, GDISP_CONTROL_ORIENTATION, (void *)GDISP_DEFAULT_ORIENTATION);
|
||||||
#endif
|
#endif
|
||||||
#if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP
|
#if GDISP_NEED_VALIDATION || GDISP_NEED_CLIP
|
||||||
|
|
Loading…
Add table
Reference in a new issue