summaryrefslogtreecommitdiff
path: root/src/wormouse.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wormouse.h')
-rw-r--r--src/wormouse.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/wormouse.h b/src/wormouse.h
index 8355855..9199d04 100644
--- a/src/wormouse.h
+++ b/src/wormouse.h
@@ -27,6 +27,8 @@ extern "C" {
#include "wormouse_options.h"
+#define _CACHE_ROTATION_
+
class WormouseScreen :
public PluginClassHandler <WormouseScreen, CompScreen>,
public WormouseOptions
@@ -44,11 +46,18 @@ class WormouseScreen :
private:
void freeResources ();
void rotateCursor (double radians);
+#ifdef _CACHE_ROTATION_
+ bool buildCache (const CompString &path);
+#endif
// workbench for cursor rotation
- cairo_t *cr;
+#ifdef _CACHE_ROTATION_
+ XcursorPixel *imageCache[360];
+#else
cairo_surface_t *img;
cairo_surface_t *work;
+ cairo_t *cr;
+#endif
Cursor cursor;
XcursorImage *xci;
MousePoller poller;