Changeset View
Changeset View
Standalone View
Standalone View
effects/trackmouse/trackmouse.cpp
Show All 39 Lines | |||||
40 | 40 | | |||
41 | namespace KWin | 41 | namespace KWin | ||
42 | { | 42 | { | ||
43 | 43 | | |||
44 | TrackMouseEffect::TrackMouseEffect() | 44 | TrackMouseEffect::TrackMouseEffect() | ||
45 | : m_active(false) | 45 | : m_active(false) | ||
46 | , m_angle(0) | 46 | , m_angle(0) | ||
47 | { | 47 | { | ||
48 | initConfig<TrackMouseConfig>(); | ||||
48 | m_texture[0] = m_texture[1] = 0; | 49 | m_texture[0] = m_texture[1] = 0; | ||
49 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | 50 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | ||
50 | m_picture[0] = m_picture[1] = 0; | 51 | m_picture[0] = m_picture[1] = 0; | ||
51 | if ( effects->compositingType() == XRenderCompositing) | 52 | if ( effects->compositingType() == XRenderCompositing) | ||
52 | m_angleBase = 1.57079632679489661923; // Pi/2 | 53 | m_angleBase = 1.57079632679489661923; // Pi/2 | ||
53 | #endif | 54 | #endif | ||
54 | if ( effects->isOpenGLCompositing() || effects->compositingType() == QPainterCompositing) | 55 | if ( effects->isOpenGLCompositing() || effects->compositingType() == QPainterCompositing) | ||
55 | m_angleBase = 90.0; | 56 | m_angleBase = 90.0; | ||
▲ Show 20 Lines • Show All 230 Lines • Show Last 20 Lines |