From 7fbe59aa53c35d9c8e18c576a7ef63ce40675219 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:48:58 +0000 Subject: [PATCH] 2002/07/15 23:20:04 darcs-hash:20040130064858-2ba56-bc07083dac69c6848b74fe79308f2ae405e23ca3.gz --- CHANGES | 4 +++- src/org/xwt/plat/AWT.java | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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"); -- 1.7.10.4