A little cleanup for Mac OSX 10.3

This commit is contained in:
David Schmidt 2012-02-25 19:19:57 +00:00
parent dd47539e6b
commit d2bcf31a45

View File

@ -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)
{
@ -506,4 +503,4 @@ void x_release_kimage(Kimage* kimage_ptr)
int x_calc_ratio(float x,float y)
{
return 1;
}
}