Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/fbdev/fb_backend.cpp
Show All 31 Lines | |||||
32 | #include <sys/ioctl.h> | 32 | #include <sys/ioctl.h> | ||
33 | #include <sys/mman.h> | 33 | #include <sys/mman.h> | ||
34 | // Linux | 34 | // Linux | ||
35 | #include <linux/fb.h> | 35 | #include <linux/fb.h> | ||
36 | 36 | | |||
37 | namespace KWin | 37 | namespace KWin | ||
38 | { | 38 | { | ||
39 | 39 | | |||
40 | FramebufferOutput::FramebufferOutput(QObject *parent): | ||||
41 | AbstractWaylandOutput(parent) | ||||
42 | { | ||||
43 | setName("FB-0"); | ||||
zzag: nit: Wrap "FB-0" in QStringLiteral. | |||||
44 | } | ||||
45 | | ||||
40 | void FramebufferOutput::init(const QSize &pixelSize, const QSize &physicalSize) | 46 | void FramebufferOutput::init(const QSize &pixelSize, const QSize &physicalSize) | ||
41 | { | 47 | { | ||
42 | KWayland::Server::OutputDeviceInterface::Mode mode; | 48 | KWayland::Server::OutputDeviceInterface::Mode mode; | ||
43 | mode.id = 0; | 49 | mode.id = 0; | ||
44 | mode.size = pixelSize; | 50 | mode.size = pixelSize; | ||
45 | mode.flags = KWayland::Server::OutputDeviceInterface::ModeFlag::Current; | 51 | mode.flags = KWayland::Server::OutputDeviceInterface::ModeFlag::Current; | ||
46 | mode.refreshRate = 60000; // TODO: get actual refresh rate of fb device? | 52 | mode.refreshRate = 60000; // TODO: get actual refresh rate of fb device? | ||
47 | initInterfaces("model_TODO", "manufacturer_TODO", "UUID_TODO", physicalSize, { mode }); | 53 | initInterfaces("model_TODO", "manufacturer_TODO", "UUID_TODO", physicalSize, { mode }); | ||
▲ Show 20 Lines • Show All 232 Lines • Show Last 20 Lines |
nit: Wrap "FB-0" in QStringLiteral.