Use GPANEL_CLEAR ioctl to switch the display orientation.
Enable gpio driver for Picadillo board.
This commit is contained in:
@@ -24,7 +24,16 @@
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/gpanel.h>
|
||||
|
||||
void gpanel_clear(int color)
|
||||
void gpanel_clear(int color, int *xsize, int *ysize)
|
||||
{
|
||||
ioctl(_gpanel_fd, GPANEL_CLEAR, color);
|
||||
struct gpanel_clear_t param;
|
||||
|
||||
param.color = color;
|
||||
param.xsize = xsize ? *xsize : 0;
|
||||
param.ysize = ysize ? *ysize : 0;
|
||||
ioctl(_gpanel_fd, GPANEL_CLEAR, ¶m);
|
||||
if (xsize)
|
||||
*xsize = param.xsize;
|
||||
if (ysize)
|
||||
*ysize = param.ysize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user