11#include <private/qcore_unix_p.h>
27 qWarning(
"Failed to open fb to detect screen resolution!");
29 struct fb_var_screeninfo vinfo;
30 memset(&vinfo, 0,
sizeof(vinfo));
31 if (ioctl(
fd, FBIOGET_VSCREENINFO, &vinfo) == -1)
32 qWarning(
"Could not get variable screen info");
34 vinfo.bits_per_pixel = 32;
36 vinfo.green.length = 8;
37 vinfo.blue.length = 8;
38 vinfo.transp.length = 8;
39 vinfo.blue.offset = 0;
40 vinfo.green.offset = 8;
41 vinfo.red.offset = 16;
42 vinfo.transp.offset = 24;
44 vinfo.yres_virtual = 2 * vinfo.yres;
47 if (ioctl(
fd, FBIOPUT_VSCREENINFO, &vinfo) == -1)
64 return (EGLNativeWindowType)fbwin;
virtual void platformInit()
void platformInit() override
void destroyNativeWindow(EGLNativeWindowType window) override
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override
void qErrnoWarning(const char *msg,...)
Combined button and popup list for selecting options.
static int qt_safe_open(const char *pathname, int flags, mode_t mode=0777)
static int qt_safe_close(int fd)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format