Permalink
Browse files

Fixed colour context

  • Loading branch information...
1 parent f68f03d commit 60a209ccea0d1928360aab87cc5f1046e0a9ec74 @Jaywalker Jaywalker committed Feb 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 animate.mm
View
@@ -129,7 +129,7 @@ CGContextRef fb_open() {
// create bitmap context
colorSpace = CGColorSpaceCreateDeviceRGB();
- context = CGBitmapContextCreate(frameBuffer, screenWidth, screenHeight, 8, bytesPerRow, colorSpace, kCGImageAlphaPremultipliedLast);
+ context = CGBitmapContextCreate(frameBuffer, screenWidth, screenHeight, 8, bytesPerRow, colorSpace, kCGImageAlphaPremultipliedFirst | kCGBitmapByteOrder32Little);
if(context == NULL) {
printf("Couldn't create screen context!\n");
return NULL;

0 comments on commit 60a209c

Please sign in to comment.