mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-10-31 15:05:57 +00:00
Use PACKBITS macros
This commit is contained in:
parent
27f3f5c947
commit
b8baa72a5c
16
rdisk.c
16
rdisk.c
@ -11,7 +11,7 @@
|
|||||||
#ifdef RDISK_COMPRESS_ICON
|
#ifdef RDISK_COMPRESS_ICON
|
||||||
#include <Quickdraw.h>
|
#include <Quickdraw.h>
|
||||||
const char const RDiskIconCompressed[92] = {
|
const char const RDiskIconCompressed[92] = {
|
||||||
-1 * (76 - 1), 0b00000000, /*
|
PackBits_Repeat(76), 0b00000000, /*
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
@ -31,9 +31,9 @@ const char const RDiskIconCompressed[92] = {
|
|||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000, */
|
0b00000000, 0b00000000, 0b00000000, 0b00000000, */
|
||||||
-1 * (4 - 1), 0b11111111, /*
|
PackBits_Repeat(4), 0b11111111, /*
|
||||||
0b11111111, 0b11111111, 0b11111111, 0b11111111, */
|
0b11111111, 0b11111111, 0b11111111, 0b11111111, */
|
||||||
(40 - 1),
|
PackBits_Literal(40),
|
||||||
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
||||||
0b10000000, 0b00000000, 0b00000000, 0b00000001,
|
0b10000000, 0b00000000, 0b00000000, 0b00000001,
|
||||||
0b10001111, 0b00011110, 0b00111100, 0b01111001,
|
0b10001111, 0b00011110, 0b00111100, 0b01111001,
|
||||||
@ -44,12 +44,12 @@ const char const RDiskIconCompressed[92] = {
|
|||||||
0b11000000, 0b00000000, 0b00000000, 0b00000001,
|
0b11000000, 0b00000000, 0b00000000, 0b00000001,
|
||||||
0b01010101, 0b01010101, 0b11010101, 0b01010101,
|
0b01010101, 0b01010101, 0b11010101, 0b01010101,
|
||||||
0b01111111, 0b11111111, 0b01111111, 0b11111111,
|
0b01111111, 0b11111111, 0b01111111, 0b11111111,
|
||||||
-1 * (12 - 1), 0b00000000, /*
|
PackBits_Repeat(12), 0b00000000, /*
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000, */
|
0b00000000, 0b00000000, 0b00000000, 0b00000000, */
|
||||||
|
|
||||||
-1 * (76 - 1), 0b00000000, /*
|
PackBits_Repeat(76), 0b00000000, /*
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
@ -69,7 +69,7 @@ const char const RDiskIconCompressed[92] = {
|
|||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000, */
|
0b00000000, 0b00000000, 0b00000000, 0b00000000, */
|
||||||
-1 * (32 - 1), 0b11111111, /*
|
PackBits_Repeat(32), 0b11111111, /*
|
||||||
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
||||||
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
||||||
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
||||||
@ -78,10 +78,10 @@ const char const RDiskIconCompressed[92] = {
|
|||||||
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
||||||
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
0b11111111, 0b11111111, 0b11111111, 0b11111111,
|
||||||
0b11111111, 0b11111111, 0b11111111, 0b11111111, */
|
0b11111111, 0b11111111, 0b11111111, 0b11111111, */
|
||||||
(8 - 1),
|
PackBits_Literal(8),
|
||||||
0b01111111, 0b11111111, 0b11111111, 0b11111111,
|
0b01111111, 0b11111111, 0b11111111, 0b11111111,
|
||||||
0b01111111, 0b11111111, 0b11111111, 0b11111111,
|
0b01111111, 0b11111111, 0b11111111, 0b11111111,
|
||||||
-1 * (12 - 1), 0b00000000, /*
|
PackBits_Repeat(12), 0b00000000, /*
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
0b00000000, 0b00000000, 0b00000000, 0b00000000,
|
||||||
0b00000000, 0b00000000, 0b00000000, 0b00000000, */
|
0b00000000, 0b00000000, 0b00000000, 0b00000000, */
|
||||||
|
4
rdisk.h
4
rdisk.h
@ -35,14 +35,14 @@ void RDiskBreak() = { 0xA9FF };
|
|||||||
|
|
||||||
typedef void (*RDiskCopy_t)(Ptr, Ptr, unsigned long);
|
typedef void (*RDiskCopy_t)(Ptr, Ptr, unsigned long);
|
||||||
|
|
||||||
//#define RDISK_COMPRESS_ICON
|
//#define RDISK_COMPRESS_ICON_ENABLE
|
||||||
typedef struct RDiskStorage_s {
|
typedef struct RDiskStorage_s {
|
||||||
DrvSts2 status;
|
DrvSts2 status;
|
||||||
char initialized;
|
char initialized;
|
||||||
char installed;
|
char installed;
|
||||||
char postBoot;
|
char postBoot;
|
||||||
Ptr ramdisk;
|
Ptr ramdisk;
|
||||||
#ifdef RDISK_COMPRESS_ICON
|
#ifdef RDISK_COMPRESS_ICON_ENABLE
|
||||||
char icon[285];
|
char icon[285];
|
||||||
#endif
|
#endif
|
||||||
} RDiskStorage_t;
|
} RDiskStorage_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user