Changeset View
Changeset View
Standalone View
Standalone View
effects/mousemark/mousemark.cpp
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Line(s) | 95 | if (r->width > 3*width/2 && r->height > 3*width/2) { | |||
---|---|---|---|---|---|
106 | delete [] rects; | 106 | delete [] rects; | ||
107 | r->x = p1.x(); | 107 | r->x = p1.x(); | ||
108 | r->y = p1.y(); | 108 | r->y = p1.y(); | ||
109 | r->width = r->height = width; | 109 | r->width = r->height = width; | ||
110 | } | 110 | } | ||
111 | } | 111 | } | ||
112 | #endif | 112 | #endif | ||
113 | 113 | | |||
114 | void MouseMarkEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) | 114 | void MouseMarkEffect::paintScreen(int mask, const QRegion ®ion, ScreenPaintData& data) | ||
115 | { | 115 | { | ||
116 | effects->paintScreen(mask, region, data); // paint normal screen | 116 | effects->paintScreen(mask, region, data); // paint normal screen | ||
117 | if (marks.isEmpty() && drawing.isEmpty()) | 117 | if (marks.isEmpty() && drawing.isEmpty()) | ||
118 | return; | 118 | return; | ||
119 | if ( effects->isOpenGLCompositing()) { | 119 | if ( effects->isOpenGLCompositing()) { | ||
120 | if (!GLPlatform::instance()->isGLES()) { | 120 | if (!GLPlatform::instance()->isGLES()) { | ||
121 | glEnable(GL_BLEND); | 121 | glEnable(GL_BLEND); | ||
122 | glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); | 122 | glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); | ||
▲ Show 20 Lines • Show All 172 Lines • Show Last 20 Lines |