Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/fbdev/fb_backend.cpp
Show All 33 Lines | |||||
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 | void FramebufferOutput::init(const QSize &size) | 40 | void FramebufferOutput::init(const QSize &size) | ||
41 | { | 41 | { | ||
42 | m_pixelSize = size; | | |||
43 | KWayland::Server::OutputDeviceInterface::Mode mode; | 42 | KWayland::Server::OutputDeviceInterface::Mode mode; | ||
44 | mode.id = 0; | 43 | mode.id = 0; | ||
45 | mode.size = size; | 44 | mode.size = size; | ||
46 | mode.flags = KWayland::Server::OutputDeviceInterface::ModeFlag::Current; | 45 | mode.flags = KWayland::Server::OutputDeviceInterface::ModeFlag::Current; | ||
47 | mode.refreshRate = 60000; // TODO: get actual refresh rate of fb device? | 46 | mode.refreshRate = 60000; // TODO: get actual refresh rate of fb device? | ||
48 | AbstractWaylandOutput::initWaylandOutputDevice("model_TODO", "manufacturer_TODO", | 47 | AbstractWaylandOutput::initWaylandOutputDevice("model_TODO", "manufacturer_TODO", | ||
49 | "UUID_TODO", { mode }); | 48 | "UUID_TODO", { mode }); | ||
50 | } | 49 | } | ||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |