22 #ifndef BACKENDS_GRAPHICS_ATARI_CURSOR_H 23 #define BACKENDS_GRAPHICS_ATARI_CURSOR_H 25 #include "graphics/surface.h" 39 _screenSurf = screenSurf;
40 _boundingSurf = boundingSurf;
42 _positionChanged =
true;
43 _surfaceChanged =
true;
44 _visibilityChanged =
false;
53 bool setVisible(
bool visible) {
54 if (_visible == visible) {
62 _visibilityChanged =
true;
66 void setSurfaceChanged() {
67 _surfaceChanged =
true;
74 void setPosition(
int x,
int y) {
77 if (_x == x && _y == y)
83 _positionChanged =
true;
85 void updatePosition(
int deltaX,
int deltaY);
88 static void setSurface(
const void *buf,
int w,
int h,
int hotspotX,
int hotspotY, uint32 keycolor);
89 static void setPalette(
const byte *colors, uint start, uint num);
91 bool isVisible()
const {
92 return !_outOfScreen && _visible;
94 bool isChanged()
const {
95 return _positionChanged || _surfaceChanged || _visibilityChanged;
99 void saveBackground();
104 void restoreBackground();
109 bool _positionChanged =
false;
110 bool _surfaceChanged =
false;
111 bool _visibilityChanged =
false;
113 bool _visible =
false;
116 bool _outOfScreen =
true;
125 static bool _globalSurfaceChanged;
127 static byte _palette[256*3];
129 static const byte *_buf;
132 static int _hotspotX;
133 static int _hotspotY;
134 static uint32 _keycolor;
140 #endif // BACKENDS_GRAPHICS_ATARI_CURSOR_H
Definition: atari-surface.h:33
Definition: atari-cursor.h:35