25 #include "backends/platform/psp/default_display_client.h" 29 int _hotspotX, _hotspotY;
31 int _cursorTargetScale;
32 bool _useCursorPalette;
33 bool _hasCursorPalette;
34 uint32 _mouseLimitWidth;
35 uint32 _mouseLimitHeight;
40 void updateRendererOffset();
43 Cursor() : _hotspotX(0), _hotspotY(0), _keyColor(0), _cursorTargetScale(0),
44 _useCursorPalette(false), _hasCursorPalette(false), _mouseLimitWidth(0),
45 _mouseLimitHeight(0), _x(0), _y(0), _fakeAlpha(false) { }
46 virtual ~
Cursor() { deallocate(); }
48 void setKeyColor(uint32 color);
49 void setCursorTargetScale(
int scale) { _cursorTargetScale =
scale; }
50 void setScreenPalette(
const byte *colors, uint start, uint num);
51 void copyFromArray(
const byte *array);
52 Palette &palette() {
return _palette; }
53 Buffer &buffer() {
return _buffer; }
54 void setCursorPalette(
const byte *colors, uint start, uint num);
55 void enableCursorPalette(
bool enable);
56 bool isCursorPaletteEnabled()
const {
return _useCursorPalette; }
57 void setLimits(uint32 width, uint32 height);
58 void setXY(
int x,
int y);
59 int32 getX()
const {
return _x; }
60 int32 getY()
const {
return _y; }
61 bool increaseXY(int32 incX, int32 incY);
62 void adjustXYForScreenSize(int32 &x, int32 &y);
64 void setHotspot(int32 x, int32 y);
68 void useGlobalScaler(
bool val) { _renderer.setUseGlobalScaler(val); }
73 void setSize(uint32 width, uint32 height);
75 PSPPixelFormat::Type &bufferFormat,
76 PSPPixelFormat::Type &paletteFormat,
77 uint32 &numOfEntries);
78 void setRendererModePalettized(
bool palettized);
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: atari-cursor.h:38
Definition: display_client.h:113
Definition: default_display_client.h:28
Definition: atari-screen.h:44