forked from hex007/freej2me
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Image + PlatformImage: Follow the javadocs more closely.
According to the docs, there are some cases where we can just return the image received as an argument straight away. Also, since lcdui.Image isn't the one actually creating new images, and instead it's PlatformImage, we should just declare each of Image's createImage as capable of throwing IllegalArgumentExceptions and handle these cases in PlatformImage's methods themselves. Result: NET Lizard games don't complain about being unable to load images from received byte arrays anymore, they just receive the exception and handle it. Still, this is the sort of change that can introduce regressions somewhere, despite being more in line with the docs.
- Loading branch information
1 parent
0bb967e
commit 3d19934
Showing
2 changed files
with
52 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters