I am clearly missing something so thought I'd ask for some help.
First my environment:
I was poking around with GDevice records by calling GetDeviceList() and GetNextDevice() to walk through them. I am correctly seeing only two devices (the two video cards) and I'm poking into the returned GDHandles and specifically looking at the gdPMap (PixMapHandle) for each of them. I don't have a particular goal. This was just exploratory.
My issue?
My expectation was that the rowBytes inside the gdPMap would be 4096 for both cards. Why? Because I was assuming 32bits per pixel and given the horizontal resolution is 1024 pixels, that should give a rowBytes of 4096.
But what I am actually seeing is 8192 for the Thunder II GX 1360 and the expected 4096 for the Spectrum 24 Series IV. Shouldn't they be the same, at 4096? Trying to understand what I'm missing here.
Data Dump for Reference
First my environment:
- CodeWarrior 11
- System 7.1.1
- Quadra 800 with two video cards
- First/primary card: SuperMac Thunder II GX 1360 driving a monitor at 1024x768 in 24-bit color
- Second card: SuperMac Spectrum 24 Series IV driving a monitor at 1024x768 in 24-bit color
I was poking around with GDevice records by calling GetDeviceList() and GetNextDevice() to walk through them. I am correctly seeing only two devices (the two video cards) and I'm poking into the returned GDHandles and specifically looking at the gdPMap (PixMapHandle) for each of them. I don't have a particular goal. This was just exploratory.
My issue?
My expectation was that the rowBytes inside the gdPMap would be 4096 for both cards. Why? Because I was assuming 32bits per pixel and given the horizontal resolution is 1024 pixels, that should give a rowBytes of 4096.
But what I am actually seeing is 8192 for the Thunder II GX 1360 and the expected 4096 for the Spectrum 24 Series IV. Shouldn't they be the same, at 4096? Trying to understand what I'm missing here.
Data Dump for Reference
- SuperMac Thunder II GX 1360 @ 1024x768 24-bit Color
- bounds: left=0, top=0, right=1024, bottom=768
- pixelType: 16 (RGB Direct)
- pixelSize: 32bits
- rowBytes:
- raw: -24576 ..... 0xa000 ..... 1010 0000 0000 0000
- highest 2 bits masked off: 8192 ..... 0x2000 ..... 0010 0000 0000 0000
- SuperMac Spectrum 24 Series IV @ 1024x768 24-bit Color
- bounds: left=1024, top=0, right=2048, bottom=768
- pixelType: 16 (RGB Direct)
- pixelSize: 32bits
- rowBytes:
- raw: -28672 ..... 0x9000 ..... 1001 0000 0000 0000
- highest 2 bits masked off: 4096 ..... 0x1000 ..... 0001 0000 0000 0000



