Mercurial > projects > dwt-linux
comparison dwt/internal/image/PNGFileFormat.d @ 259:c0d810de7093
Update SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 29 Jun 2008 14:33:38 +0200 |
parents | ce446666f5a2 |
children |
comparison
equal
deleted
inserted
replaced
257:cc1d3de0e80b | 259:c0d810de7093 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2006 IBM Corporation and others. | 2 * Copyright (c) 2000, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
174 if ((signature[2] & 0xFF) !is 78) return false; //N | 174 if ((signature[2] & 0xFF) !is 78) return false; //N |
175 if ((signature[3] & 0xFF) !is 71) return false; //G | 175 if ((signature[3] & 0xFF) !is 71) return false; //G |
176 if ((signature[4] & 0xFF) !is 13) return false; //<RETURN> | 176 if ((signature[4] & 0xFF) !is 13) return false; //<RETURN> |
177 if ((signature[5] & 0xFF) !is 10) return false; //<LINEFEED> | 177 if ((signature[5] & 0xFF) !is 10) return false; //<LINEFEED> |
178 if ((signature[6] & 0xFF) !is 26) return false; //<CTRL/Z> | 178 if ((signature[6] & 0xFF) !is 26) return false; //<CTRL/Z> |
179 if ((signature[7] & 0xFF) !is 10) return false; //<LINEFEED> | 179 if ((signature[7] & 0xFF) !is 10) return false; //<LINEFEED> |
180 return true; | 180 return true; |
181 } catch (Exception e) { | 181 } catch (Exception e) { |
182 return false; | 182 return false; |
183 } | 183 } |
184 } | 184 } |