mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-11-15 14:11:28 +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
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
CGColorSpaceRef colorSpace;
|
|
||||||
|
|
||||||
int pixelsWide = 704;
|
int pixelsWide = 704;
|
||||||
int pixelsHigh = 462;
|
int pixelsHigh = 462;
|
||||||
bitmapBytesPerRow = (pixelsWide * 4);// 1
|
bitmapBytesPerRow = (pixelsWide * 4);// 1
|
||||||
bitmapByteCount = (bitmapBytesPerRow * pixelsHigh);
|
bitmapByteCount = (bitmapBytesPerRow * pixelsHigh);
|
||||||
|
|
||||||
colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);// 2
|
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
|
||||||
bitmapData = (char*)malloc( bitmapByteCount );// 3
|
bitmapData = (char*)malloc( bitmapByteCount );// 3
|
||||||
if (bitmapData == NULL)
|
if (bitmapData == NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user