Changeset View
Changeset View
Standalone View
Standalone View
effects/showfps/showfps.cpp
Show All 26 Lines | |||||
27 | 27 | | |||
28 | #include <kwinglutils.h> | 28 | #include <kwinglutils.h> | ||
29 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | 29 | #ifdef KWIN_HAVE_XRENDER_COMPOSITING | ||
30 | #include <kwinxrenderutils.h> | 30 | #include <kwinxrenderutils.h> | ||
31 | #include <xcb/render.h> | 31 | #include <xcb/render.h> | ||
32 | #endif | 32 | #endif | ||
33 | 33 | | |||
34 | #include <KLocalizedString> | 34 | #include <KLocalizedString> | ||
35 | #include <math.h> | 35 | | ||
36 | #include <QPainter> | 36 | #include <QPainter> | ||
37 | #include <QVector2D> | 37 | #include <QVector2D> | ||
38 | #include <QPalette> | 38 | #include <QPalette> | ||
39 | 39 | | |||
40 | #include <cmath> | ||||
41 | | ||||
40 | namespace KWin | 42 | namespace KWin | ||
41 | { | 43 | { | ||
42 | 44 | | |||
43 | const int FPS_WIDTH = 10; | 45 | const int FPS_WIDTH = 10; | ||
44 | const int MAX_TIME = 100; | 46 | const int MAX_TIME = 100; | ||
45 | 47 | | |||
46 | ShowFpsEffect::ShowFpsEffect() | 48 | ShowFpsEffect::ShowFpsEffect() | ||
47 | : paints_pos(0) | 49 | : paints_pos(0) | ||
▲ Show 20 Lines • Show All 500 Lines • Show Last 20 Lines |