Revision: 2942
http://sourceforge.net/p/swingme/code/2942
Author: yuranet
Date: 2025-11-24 18:47:35 +0000 (Mon, 24 Nov 2025)
Log Message:
-----------
edge-to-edge screen tint
Modified Paths:
--------------
SwingME/src/net/yura/mobile/gui/DesktopPane.java
Modified: SwingME/src/net/yura/mobile/gui/DesktopPane.java
===================================================================
--- SwingME/src/net/yura/mobile/gui/DesktopPane.java 2025-11-24 18:47:02 UTC (rev 2941)
+++ SwingME/src/net/yura/mobile/gui/DesktopPane.java 2025-11-24 18:47:35 UTC (rev 2942)
@@ -707,7 +707,12 @@
if (c == (windows.size() - 2) && fade != null) {
int w = getWidth();
int h = getHeight();
- if (fade instanceof Icon) {
+ if (fade instanceof Border) {
+ Border tint = (Border) fade;
+ // we need a component, so we use our dummy parent thats at 0,0
+ tint.paintBorder(tooltip.getWindow(), graphics, w, h);
+ }
+ else if (fade instanceof Icon) {
Image i = ((Icon)fade).getImage();
// hack for synth and MIDP, here we tile some poor image to fill the whole screen
graphics.drawImage(i, 0, 0, i.getWidth(), i.getHeight(), 0, 0, w, h );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|