ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
All uses of the old target scale API actually wanted to disallow scaling of the mouse cursor. This commit adapts our API to this and thus simplifies backend implementations. Some backends, most notable the Wii and Android, did some implementation of the cursor target scale, which I didn't adapt yet. I added a TODO for the porters there.
This commit is contained in:
parent
db77b9e4a7
commit
a401f0a19e
45 changed files with 1086 additions and 1108 deletions
|
@ -218,15 +218,12 @@ bool ThemeParser::parserCallback_cursor(ParserNode *node) {
|
|||
return true;
|
||||
}
|
||||
|
||||
int spotx, spoty, scale;
|
||||
int spotx, spoty;
|
||||
|
||||
if (!parseIntegerKey(node->values["hotspot"], 2, &spotx, &spoty))
|
||||
return parserError("Error parsing cursor Hot Spot coordinates.");
|
||||
|
||||
if (!parseIntegerKey(node->values["scale"], 1, &scale))
|
||||
return parserError("Error parsing cursor scale.");
|
||||
|
||||
if (!_theme->createCursor(node->values["file"], spotx, spoty, scale))
|
||||
if (!_theme->createCursor(node->values["file"], spotx, spoty))
|
||||
return parserError("Error creating Bitmap Cursor.");
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue