[Scummvm-devel] setFocusRectangle() and 192x128...

Gregory Montoir cyx at users.sourceforge.net
Sat Dec 8 09:56:29 CET 2007


Max Horn wrote:
> Am 07.12.2007 um 22:06 schrieb Gregory Montoir:
> 
> [...]
> 
>> or is it
>> really safe to pass any rectangle dimension ?
> 
> Do it. That's how it is documented. If backends don't implement this  
> spec correctly, they are buggy and need to be fixed.

Ok. But still, it could be interesting for engines to know the maximum 
width and height for the focusable rect.

For example, in queen, a "spoken" line of text has a maximum fixed width 
of 20 characters (which looks ok for a 320 pixels width screen). If the 
focusable rect dimensions were known, each line of text could then be 
clipped using it instead of using the game screen width.





More information about the Scummvm-devel mailing list