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
|
@ -303,7 +303,7 @@ void OSystem_PSP::warpMouse(int x, int y) {
|
|||
_cursor.setXY(x, y);
|
||||
}
|
||||
|
||||
void OSystem_PSP::setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, int cursorTargetScale, const Graphics::PixelFormat *format) {
|
||||
void OSystem_PSP::setMouseCursor(const byte *buf, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor, bool dontScale, const Graphics::PixelFormat *format) {
|
||||
DEBUG_ENTER_FUNC();
|
||||
_displayManager.waitUntilRenderFinished();
|
||||
_pendingUpdate = false;
|
||||
|
@ -314,7 +314,9 @@ void OSystem_PSP::setMouseCursor(const byte *buf, uint w, uint h, int hotspotX,
|
|||
}
|
||||
|
||||
_cursor.setKeyColor(keycolor);
|
||||
_cursor.setCursorTargetScale(cursorTargetScale);
|
||||
// TODO: The old target scale was saved but never used. Should the new
|
||||
// "do not scale" logic be implemented?
|
||||
//_cursor.setCursorTargetScale(cursorTargetScale);
|
||||
_cursor.setSizeAndScummvmPixelFormat(w, h, format);
|
||||
_cursor.setHotspot(hotspotX, hotspotY);
|
||||
_cursor.clearKeyColor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue