Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/fbdev/fb_backend.cpp
Show All 39 Lines | |||||
40 | FramebufferOutput::FramebufferOutput(QObject *parent): | 40 | FramebufferOutput::FramebufferOutput(QObject *parent): | ||
41 | AbstractWaylandOutput(parent) | 41 | AbstractWaylandOutput(parent) | ||
42 | { | 42 | { | ||
43 | setName("FB-0"); | 43 | setName("FB-0"); | ||
44 | } | 44 | } | ||
45 | 45 | | |||
46 | void FramebufferOutput::init(const QSize &pixelSize, const QSize &physicalSize) | 46 | void FramebufferOutput::init(const QSize &pixelSize, const QSize &physicalSize) | ||
47 | { | 47 | { | ||
48 | KWayland::Server::OutputDeviceInterface::Mode mode; | 48 | KWaylandServer::OutputDeviceInterface::Mode mode; | ||
49 | mode.id = 0; | 49 | mode.id = 0; | ||
50 | mode.size = pixelSize; | 50 | mode.size = pixelSize; | ||
51 | mode.flags = KWayland::Server::OutputDeviceInterface::ModeFlag::Current; | 51 | mode.flags = KWaylandServer::OutputDeviceInterface::ModeFlag::Current; | ||
52 | mode.refreshRate = 60000; // TODO: get actual refresh rate of fb device? | 52 | mode.refreshRate = 60000; // TODO: get actual refresh rate of fb device? | ||
53 | initInterfaces("model_TODO", "manufacturer_TODO", "UUID_TODO", physicalSize, { mode }); | 53 | initInterfaces("model_TODO", "manufacturer_TODO", "UUID_TODO", physicalSize, { mode }); | ||
54 | } | 54 | } | ||
55 | 55 | | |||
56 | FramebufferBackend::FramebufferBackend(QObject *parent) | 56 | FramebufferBackend::FramebufferBackend(QObject *parent) | ||
57 | : Platform(parent) | 57 | : Platform(parent) | ||
58 | { | 58 | { | ||
59 | } | 59 | } | ||
▲ Show 20 Lines • Show All 226 Lines • Show Last 20 Lines |