Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/internal/image/GIFFileFormat.d @ 39:0ecb2b338560
further work on phobosification
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 13:20:43 +0100 |
parents | d46287db17ed |
children | 9f4c18c268b2 |
comparison
equal
deleted
inserted
replaced
38:2e09b0e6857a | 39:0ecb2b338560 |
---|---|
491 } | 491 } |
492 } | 492 } |
493 | 493 |
494 try { | 494 try { |
495 /* Step 3: Write the GIF89a Header and Logical Screen Descriptor. */ | 495 /* Step 3: Write the GIF89a Header and Logical Screen Descriptor. */ |
496 outputStream.write(GIF89a); | 496 outputStream.write(cast(byte[])GIF89a); |
497 int bitField = globalTable*128 + (depth-1)*16 + depth-1; | 497 int bitField = globalTable*128 + (depth-1)*16 + depth-1; |
498 outputStream.writeShort(cast(short)logicalScreenWidth); | 498 outputStream.writeShort(cast(short)logicalScreenWidth); |
499 outputStream.writeShort(cast(short)logicalScreenHeight); | 499 outputStream.writeShort(cast(short)logicalScreenHeight); |
500 outputStream.write(bitField); | 500 outputStream.write(bitField); |
501 outputStream.write(backgroundPixel); | 501 outputStream.write(backgroundPixel); |
514 int repeatCount = loader.repeatCount; | 514 int repeatCount = loader.repeatCount; |
515 try { | 515 try { |
516 outputStream.write(GIF_EXTENSION_BLOCK_ID); | 516 outputStream.write(GIF_EXTENSION_BLOCK_ID); |
517 outputStream.write(GIF_APPLICATION_EXTENSION_BLOCK_ID); | 517 outputStream.write(GIF_APPLICATION_EXTENSION_BLOCK_ID); |
518 outputStream.write(NETSCAPE2_0.length); | 518 outputStream.write(NETSCAPE2_0.length); |
519 outputStream.write(NETSCAPE2_0); | 519 outputStream.write(cast(byte[])NETSCAPE2_0); |
520 outputStream.write(3); // Three bytes follow | 520 outputStream.write(3); // Three bytes follow |
521 outputStream.write(1); // Extension type | 521 outputStream.write(1); // Extension type |
522 outputStream.writeShort(cast(short) repeatCount); | 522 outputStream.writeShort(cast(short) repeatCount); |
523 outputStream.write(0); // Block terminator | 523 outputStream.write(0); // Block terminator |
524 } catch (IOException e) { | 524 } catch (IOException e) { |