mirror of
https://github.com/jorio/Pomme.git
synced 2025-01-14 19:29:54 +00:00
Implement PixMap.rowBytes
This commit is contained in:
parent
774b9fe1b4
commit
87a27333c3
@ -40,6 +40,7 @@ struct GrafPortImpl
|
||||
macpm = {};
|
||||
macpm.bounds = boundsRect;
|
||||
macpm.pixelSize = 32;
|
||||
macpm.rowBytes = (pixels.width * macpm.pixelSize / 8) | (1 << 15); // bit 15 = 1: structure is PixMap, not BitMap
|
||||
macpm._impl = (Ptr) &pixels;
|
||||
macpmPtr = &macpm;
|
||||
}
|
||||
|
@ -143,6 +143,7 @@ typedef struct PixMap
|
||||
{
|
||||
Rect bounds;
|
||||
short pixelSize;
|
||||
short rowBytes;
|
||||
Ptr _impl; // Points to ARGBPixmap
|
||||
} PixMap;
|
||||
typedef PixMap* PixMapPtr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user