@@ -359,7 +359,6 @@ static void test_valid ()
359
359
360
360
/* EMR_EOF */ 0x0E , 0x00 , 0x00 , 0x00 , 0x14 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x6C , 0x00 , 0x00 , 0x00
361
361
};
362
- #if defined(USE_WINDOWS_GDIPLUS )
363
362
BYTE shortMillimetres [] = {
364
363
/* EMR_HEADER */ 0x01 , 0x00 , 0x00 , 0x00 , 0x58 , 0x00 , 0x00 , 0x00 ,
365
364
/* Bounds */ 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x57 , 0x00 , 0x00 , 0x00 , 0x5D , 0x00 , 0x00 , 0x00 ,
@@ -376,7 +375,6 @@ static void test_valid ()
376
375
/* Device */ 0xA0 , 0x05 , 0x00 , 0x00 , 0x84 , 0x03 , 0x00 , 0x00 ,
377
376
/* Millimetres */ 0xD8 , 0x00 , 0x00 , 0x00 , 0x6C , 0x00 , 0x00
378
377
};
379
- #endif
380
378
BYTE invalidPixelFormat [] = {
381
379
/* EMR_HEADER */ 0x01 , 0x00 , 0x00 , 0x00 , 0x64 , 0x00 , 0x00 , 0x00 ,
382
380
/* Bounds */ 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x57 , 0x00 , 0x00 , 0x00 , 0x5D , 0x00 , 0x00 , 0x00 ,
@@ -463,7 +461,6 @@ static void test_valid ()
463
461
464
462
/* EMR_EOF */ 0x0E , 0x00 , 0x00 , 0x00 , 0x14 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x6C , 0x00 , 0x00 , 0x00
465
463
};
466
- #if defined(USE_WINDOWS_GDIPLUS )
467
464
BYTE noRecords [] = {
468
465
/* EMR_HEADER */ 0x01 , 0x00 , 0x00 , 0x00 , 0x58 , 0x00 , 0x00 , 0x00 ,
469
466
/* Bounds */ 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x57 , 0x00 , 0x00 , 0x00 , 0x5D , 0x00 , 0x00 , 0x00 ,
@@ -624,7 +621,6 @@ static void test_valid ()
624
621
/* bOpenGL */ 0x00 , 0x00 , 0x00 , 0x00 ,
625
622
/* Micrometers */ 0xC0 , 0x4B , 0x03 , 0x00 , 0xD8 , 0x41 , 0x04
626
623
};
627
- #endif
628
624
BYTE tooLargeFileSize [] = {
629
625
/* EMR_HEADER */ 0x01 , 0x00 , 0x00 , 0x00 , 0x58 , 0x00 , 0x00 , 0x00 ,
630
626
/* Bounds */ 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x00 , 0x57 , 0x00 , 0x00 , 0x00 , 0x5D , 0x00 , 0x00 , 0x00 ,
@@ -661,16 +657,11 @@ static void test_valid ()
661
657
createFileSuccess (nonZeroReserved , 14 , 20 , 50 , 18 , 750 , 216 );
662
658
createFileSuccess (invalidDescription , 14 , 20 , 50 , 18 , 750 , 216 );
663
659
createFileSuccess (invalidPalEntries , 14 , 20 , 50 , 18 , 750 , 216 );
664
- // FIXME: GDI+ allows 4 bytes off the size of Millimetres.
665
- #if defined(USE_WINDOWS_GDIPLUS )
666
660
createFileSuccess (shortMillimetres , 14 , 20 , 50 , 18 , 750 , 216 );
667
- #endif
668
661
createFileSuccess (invalidPixelFormat , 14 , 20 , 50 , 18 , 750 , 216 );
669
662
createFileSuccess (invalidOpenGL , 14 , 20 , 50 , 18 , 750 , 216 );
670
663
createFileSuccess (zeroMicrometresWidth , 14 , 20 , 50 , 18 , 750 , 216 );
671
664
createFileSuccess (zeroMicrometresHeight , 14 , 20 , 50 , 18 , 750 , 216 );
672
- // FIXME: GDI+ allows short header extensions.
673
- #if defined(USE_WINDOWS_GDIPLUS )
674
665
createFileSuccess (noRecords , 14 , 20 , 50 , 18 , 750 , 216 );
675
666
createFileSuccess (noCbPixelFormat , 14 , 20 , 50 , 18 , 750 , 216 );
676
667
createFileSuccess (shortCbPixelFormat , 14 , 20 , 50 , 18 , 750 , 216 );
@@ -680,7 +671,6 @@ static void test_valid ()
680
671
createFileSuccess (shortOpenGL , 14 , 20 , 50 , 18 , 750 , 216 );
681
672
createFileSuccess (noMicrometers , 14 , 20 , 50 , 18 , 750 , 216 );
682
673
createFileSuccess (shortMicrometers , 14 , 20 , 50 , 18 , 750 , 216 );
683
- #endif
684
674
createFileSuccess (tooLargeFileSize , 14 , 20 , 50 , 18 , 750 , 216 );
685
675
}
686
676
0 commit comments