[kaffe] [patch] Handle Graphics.setClip(null) as in Sun's Java

Benja Fallenstein b.fallenstein at gmx.de
Fri Jul 2 17:56:21 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

the attached patch includes my earlier patch to java.awt.Graphics & co,
plus a patch to NativeGraphics that makes setClip(null) behave as in
Sun's Java, namely, remove the clipping information.

This behavior isn't explicitly documented in Sun's documentation, but
can be inferred:

- - getClip() is defined to return null when there is no clip;
- - setClip(s) is defined to work on the Shapes returned by getClip().

Cheers,
- - Benja
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA5gQ0UvR5J6wSKPMRApDeAJ9ZDO4Mozu6NAM2UfCOrylFQTaOoACfYK8I
WaUjHOcFSBzfPdjOSPJsJiA=
=DIUd
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graphics.patch
Type: text/x-patch
Size: 4061 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20040703/bd90efbb/attachment-0002.bin 


More information about the kaffe mailing list