diff options
author | Eugene Sandulenko | 2012-06-08 23:20:28 -0700 |
---|---|---|
committer | Eugene Sandulenko | 2012-06-08 23:20:28 -0700 |
commit | ec92a867da699f069a6adee41be89a50be0b9128 (patch) | |
tree | 6b14d8649afa0afb08f1bef2118328e8cc6e91e0 /common | |
parent | 3968f3194893d88d1a8d73eef535b801e5415765 (diff) | |
parent | a401f0a19e09d7d00a3ee94d928db82e658b7b48 (diff) | |
download | scummvm-rg350-ec92a867da699f069a6adee41be89a50be0b9128.tar.gz scummvm-rg350-ec92a867da699f069a6adee41be89a50be0b9128.tar.bz2 scummvm-rg350-ec92a867da699f069a6adee41be89a50be0b9128.zip |
Merge pull request #243 from lordhoto/cursor-no-scale
ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
Diffstat (limited to 'common')
-rw-r--r-- | common/system.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/common/system.h b/common/system.h index dc74533861..976a3d2c4a 100644 --- a/common/system.h +++ b/common/system.h @@ -883,10 +883,11 @@ public: * @param keycolor transparency color value. This should not exceed the maximum color value of the specified format. * In case it does the behavior is undefined. The backend might just error out or simply ignore the * value. (The SDL backend will just assert to prevent abuse of this). - * @param cursorTargetScale scale factor which cursor is designed for + * @param dontScale Whether the cursor should never be scaled. An exception are high ppi displays, where the cursor + * would be too small to notice otherwise, these are allowed to scale the cursor anyway. * @param format pointer to the pixel format which cursor graphic uses (0 means CLUT8) */ - virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, int cursorTargetScale = 1, const Graphics::PixelFormat *format = NULL) = 0; + virtual void setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale = false, const Graphics::PixelFormat *format = NULL) = 0; /** * Replace the specified range of cursor the palette with new colors. |