diff options
author | Bastien Bouclet | 2019-11-07 11:02:00 +0100 |
---|---|---|
committer | Bastien Bouclet | 2019-11-07 11:02:00 +0100 |
commit | 652722e760fab2959c74e2fa65452f334c8b8478 (patch) | |
tree | 5c03f9e31bcfe9d73292d66a2eaaaa3738e41de8 /backends/platform/3ds/sprite.h | |
parent | 6901ee0242c128d3b6026f83a10da4ca90e265e0 (diff) | |
download | scummvm-rg350-652722e760fab2959c74e2fa65452f334c8b8478.tar.gz scummvm-rg350-652722e760fab2959c74e2fa65452f334c8b8478.tar.bz2 scummvm-rg350-652722e760fab2959c74e2fa65452f334c8b8478.zip |
3DS: Rework mouse cursor movement
- Fix clipping the cursor position
- Ensure the mouse has the same vertical and horizontal speed
Diffstat (limited to 'backends/platform/3ds/sprite.h')
-rw-r--r-- | backends/platform/3ds/sprite.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/3ds/sprite.h b/backends/platform/3ds/sprite.h index a7d8b77842..7bb4d36c3a 100644 --- a/backends/platform/3ds/sprite.h +++ b/backends/platform/3ds/sprite.h @@ -54,10 +54,10 @@ public: void setPosition(int x, int y); void setOffset(uint16 x, uint16 y); void setScale(float x, float y); - float getScaleX(){ return scaleX; } - float getScaleY(){ return scaleY; } - int getPosX(){ return posX; } - int getPosY(){ return posY; } + float getScaleX() const { return scaleX; } + float getScaleY() const { return scaleY; } + int getPosX() const { return posX; } + int getPosY() const { return posY; } C3D_Mtx* getMatrix(); uint16 actualWidth; |