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