[Scummvm-devel] Max cursor size

LavosSpawn LavosSpawn at scummvm.org
Sun Apr 30 12:01:03 CEST 2006


128x128 is also what my ps2 port supports, I never noticed any problems 
about it.
It's checked with an assertion and it never triggered.
But I never tried any HE games on the ps2.


----- Original Message ----- 
From: "Max Horn" <max at quendi.de>
To: "ScummVM devel" <scummvm-devel at lists.sourceforge.net>
Sent: Sunday, April 30, 2006 8:45 PM
Subject: Re: [Scummvm-devel] Max cursor size



Am 30.04.2006 um 09:09 schrieb Torbjörn Andersson:

> Currently, the BS2 engine has some code to limit the mouse cursor  to max
> 80x80 pixels. I don't remember why - or even if - this was necessary,
> but the reason for that particular size was that the SDL backend  used to
> impose such a limit. As far as I can tell, it no longer does.
>
> However, it still does define MAX_MOUSE_W and MAX_MOUSE_H, and at  least
> the WinCE and MorphOS backends seem to have the limitation still.
>
> My question is, should the BS2 engine keep limit the cursor size, or
> should we declare it the backend's responsibility?


My take on this: We do not impose any limit on the cursor size
currently. This could become a problem, if a port has to implement
some limit, and we don't know whether games might need a bigger size.

Proposal: We agree on an arbitrary size limit, say, 128x128, or
80x80, and add to the OSystem docs: "All backends MUST support
cursors of at least up to 128x128 pixels. They MAY support bigger
cursors. They MUST gracefully deal with cursors that are bigger than
they support, by cropping or scaling them."

That way, backend creators know what they have to expect, and engine
writers do not have to worry about cursor sizes. And if we ever
encounter bigger cursors, well, we can worry about that then :-).


We could also add a return value to setMouseCursor() that indicates
if it failed to set the desired cursor.



Cheers,
Max

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job 
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=k&kid0709&bid&3057&dat1642
_______________________________________________
Scummvm-devel mailing list
Scummvm-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scummvm-devel





More information about the Scummvm-devel mailing list