22 #ifndef BACKENDS_GRAPHICS_ATARI_CURSOR_H 23 #define BACKENDS_GRAPHICS_ATARI_CURSOR_H 25 #include "common/rect.h" 26 #include "common/scummsys.h" 27 #include "graphics/surface.h" 41 , _parentScreen(screen) {
45 _positionChanged =
true;
46 _surfaceChanged =
true;
47 _visibilityChanged =
false;
56 bool setVisible(
bool visible) {
57 if (_visible == visible) {
65 _visibilityChanged =
true;
74 void setPosition(
int x,
int y) {
75 if (_x == x && _y == y)
81 _positionChanged =
true;
83 void updatePosition(
int deltaX,
int deltaY);
86 void setSurface(
const void *buf,
int w,
int h,
int hotspotX,
int hotspotY, uint32 keycolor);
87 void setPalette(
const byte *colors, uint start, uint num);
90 bool isVisible()
const {
91 return !_outOfScreen && _visible;
93 bool isChanged()
const {
94 return _positionChanged || _surfaceChanged || _visibilityChanged;
103 bool draw(
bool directRendering,
bool force);
106 static byte _palette[256*3];
111 bool _positionChanged =
true;
112 bool _surfaceChanged =
true;
113 bool _visibilityChanged =
false;
115 bool _visible =
false;
116 int _x = -1, _y = -1;
117 bool _outOfScreen =
true;
125 const byte *_buf =
nullptr;
134 int _rShift, _gShift, _bShift;
135 int _rMask, _gMask, _bMask;
138 #endif // BACKENDS_GRAPHICS_ATARI_CURSOR_H
Definition: atari-screen.h:60
Definition: atari-cursor.h:38
bool intersects(const Rect &r) const
Definition: rect.h:255
Definition: atari-graphics.h:40