From: megacz Date: Fri, 30 Jan 2004 06:48:58 +0000 (+0000) Subject: 2002/07/15 23:20:04 X-Git-Tag: RC3~1633 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=7fbe59aa53c35d9c8e18c576a7ef63ce40675219;hp=32d40073be7208ce1b33677f0cf9e630f46bbfb8;p=org.ibex.core.git 2002/07/15 23:20:04 darcs-hash:20040130064858-2ba56-bc07083dac69c6848b74fe79308f2ae405e23ca3.gz --- diff --git a/CHANGES b/CHANGES index e90213c..4d5ed75 100644 --- a/CHANGES +++ b/CHANGES @@ -264,4 +264,6 @@ 15-Jul megacz TinySSL.java: speed improvement on certificate checks -15-Jul megacz XMLRPC.java: workaround for bug in Zope XML-RPC server \ No newline at end of file +15-Jul megacz XMLRPC.java: workaround for bug in Zope XML-RPC server + +15-Jul megacz AWT.java: print out color depth \ No newline at end of file diff --git a/src/org/xwt/plat/AWT.java b/src/org/xwt/plat/AWT.java index 4a79839..5f12430 100644 --- a/src/org/xwt/plat/AWT.java +++ b/src/org/xwt/plat/AWT.java @@ -27,6 +27,11 @@ public class AWT extends Platform { protected int _getMaxDescent(String font) { return getFont(font).metrics.getMaxDescent(); } protected boolean _supressDirtyOnResize() { return true; } + protected void postInit() { + if (Log.on) Log.log(Platform.class, " color depth = " + + Toolkit.getDefaultToolkit().getColorModel().getPixelSize() + "bpp"); + } + protected void _criticalAbort(String message) { if (Log.on) Log.log(this, message); final Dialog d = new Dialog(new Frame(), "XWT Cannot Continue");