Changeset 238:380bad9f6852 for dwt/internal/image/GIFFileFormat.d
- Timestamp:
- 05/04/08 18:42:55 (4 years ago)
- Files:
-
- dwt/internal/image/GIFFileFormat.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/internal/image/GIFFileFormat.d
r200 r238 29 29 30 30 final class GIFFileFormat : FileFormat { 31 char[]signature;31 String signature; 32 32 int screenWidth, screenHeight, backgroundPixel, bitsPerPixel, defaultDepth; 33 33 int disposalMethod = 0; … … 65 65 stream.read(signature); 66 66 stream.unread(signature); 67 return cast( char[])signature == "GIF"; //$NON-NLS-1$67 return cast(String)signature == "GIF"; //$NON-NLS-1$ 68 68 } catch (Exception e) { 69 69 return false; … … 81 81 try { 82 82 inputStream.read(signatureBytes); 83 signature = cast( char[])signatureBytes.dup;83 signature = cast(String)signatureBytes.dup; 84 84 if (signature != "GIF") //$NON-NLS-1$ 85 85 DWT.error(DWT.ERROR_INVALID_IMAGE); … … 318 318 byte[] applicationBytes = new byte[8]; 319 319 inputStream.read(applicationBytes); 320 char[] application = cast(char[])(applicationBytes.dup);320 String application = cast(String)(applicationBytes.dup); 321 321 // Read authentication code. 322 322 byte[] authenticationBytes = new byte[3]; 323 323 inputStream.read(authenticationBytes); 324 char[] authentication = cast(char[])(authenticationBytes.dup);324 String authentication = cast(String)(authenticationBytes.dup); 325 325 // Read application data. 326 326 byte[] data = new byte[0];
