Mercurial > projects > dwt-win
diff dwt/graphics/Device.d @ 57:41dbc4d9faab
Update to tango trunk -r3152. Thanks DavidLeon for the adjustment of TracedException to Exception and creating the patch.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 04 Feb 2008 12:46:24 +0100 |
parents | 0405e18fec7f |
children | e10cbfc977d2 |
line wrap: on
line diff
--- a/dwt/graphics/Device.d Mon Feb 04 12:34:19 2008 +0100 +++ b/dwt/graphics/Device.d Mon Feb 04 12:46:24 2008 +0100 @@ -63,7 +63,7 @@ public static bool DEBUG; bool debug_; bool tracking; - TracedException [] errors; + Exception [] errors; Object [] objects; /** @@ -160,7 +160,7 @@ create (data); init (); if (tracking) { - errors = new TracedException [128]; + errors = new Exception [128]; objects = new Object [128]; } @@ -204,7 +204,7 @@ if (Gdip.GdiplusStartup ( &token, &input, null ) is 0) { gdipToken = token; } - } catch (TracedException t) { + } catch (Exception t) { DWT.error (DWT.ERROR_NO_GRAPHICS_LIBRARY, t, " [GDI+ is required]"); //$NON-NLS-1$ } finally { OS.SetErrorMode (oldErrorMode); @@ -392,7 +392,7 @@ } int index = 0; data.objects = new Object [count]; - data.errors = new TracedException [count]; + data.errors = new Exception [count]; for (int i=0; i<length; i++) { if (objects [i] !is null) { data.objects [index] = objects [i]; @@ -820,7 +820,7 @@ for (int i=0; i<objects.length; i++) { if (objects [i] is null) { objects [i] = object; - errors [i] = new TracedException ( "" ); + errors [i] = new Exception ( "" ); return; } } @@ -828,9 +828,9 @@ System.arraycopy (objects, 0, newObjects, 0, objects.length); newObjects [objects.length] = object; objects = newObjects; - TracedException [] newErrors = new TracedException [errors.length + 128]; + Exception [] newErrors = new Exception [errors.length + 128]; System.arraycopy (errors, 0, newErrors, 0, errors.length); - newErrors [errors.length] = new TracedException (""); + newErrors [errors.length] = new Exception (""); errors = newErrors; }