Changeset View
Changeset View
Standalone View
Standalone View
platform.cpp
Show All 22 Lines | |||||
23 | #include "composite.h" | 23 | #include "composite.h" | ||
24 | #include "cursor.h" | 24 | #include "cursor.h" | ||
25 | #include "input.h" | 25 | #include "input.h" | ||
26 | #include "pointer_input.h" | 26 | #include "pointer_input.h" | ||
27 | #include "scene_opengl.h" | 27 | #include "scene_opengl.h" | ||
28 | #include "screenedge.h" | 28 | #include "screenedge.h" | ||
29 | #include "wayland_server.h" | 29 | #include "wayland_server.h" | ||
30 | 30 | | |||
31 | #include "colorcorrection/nightcolor.h" | ||||
32 | | ||||
31 | namespace KWin | 33 | namespace KWin | ||
32 | { | 34 | { | ||
33 | 35 | | |||
34 | Platform::Platform(QObject *parent) | 36 | Platform::Platform(QObject *parent) | ||
35 | : QObject(parent) | 37 | : QObject(parent) | ||
36 | , m_eglDisplay(EGL_NO_DISPLAY) | 38 | , m_eglDisplay(EGL_NO_DISPLAY) | ||
37 | { | 39 | { | ||
40 | m_nightColor = new ColorCorrect::Manager(this); | ||||
38 | } | 41 | } | ||
39 | 42 | | |||
40 | Platform::~Platform() | 43 | Platform::~Platform() | ||
41 | { | 44 | { | ||
42 | if (m_eglDisplay != EGL_NO_DISPLAY) { | 45 | if (m_eglDisplay != EGL_NO_DISPLAY) { | ||
43 | eglTerminate(m_eglDisplay); | 46 | eglTerminate(m_eglDisplay); | ||
44 | } | 47 | } | ||
45 | } | 48 | } | ||
▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines |