mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-12-28 19:32:31 +00:00
A little cleanup for Mac OSX 10.3
This commit is contained in:
parent
dd47539e6b
commit
d2bcf31a45
@ -313,15 +313,12 @@ dev_video_init()
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
CGColorSpaceRef colorSpace;
|
||||
|
||||
int pixelsWide = 704;
|
||||
int pixelsHigh = 462;
|
||||
bitmapBytesPerRow = (pixelsWide * 4);// 1
|
||||
bitmapByteCount = (bitmapBytesPerRow * pixelsHigh);
|
||||
|
||||
colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);// 2
|
||||
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
|
||||
bitmapData = (char*)malloc( bitmapByteCount );// 3
|
||||
if (bitmapData == NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user