mirror of
https://github.com/david-schmidt/gsport.git
synced 2024-12-28 03:30:05 +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)
|
||||
{
|
||||
@ -506,4 +503,4 @@ void x_release_kimage(Kimage* kimage_ptr)
|
||||
int x_calc_ratio(float x,float y)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user