Revision 49060c29 ui/cocoa.m
b/ui/cocoa.m | ||
---|---|---|
427 | 427 |
CGDataProviderRelease(dataProviderRef); |
428 | 428 |
|
429 | 429 |
//sync host window color space with guests |
430 |
screen.bitsPerPixel = surface_bits_per_pixel(surface);
|
|
431 |
screen.bitsPerComponent = surface_bytes_per_pixel(surface) * 2;
|
|
430 |
screen.bitsPerPixel = surface_bits_per_pixel(surface);
|
|
431 |
screen.bitsPerComponent = surface_bytes_per_pixel(surface) * 2;
|
|
432 | 432 |
|
433 | 433 |
dataProviderRef = CGDataProviderCreateWithData(NULL, surface_data(surface), w * 4 * h, NULL); |
434 | 434 |
|
... | ... | |
774 | 774 |
[normalWindow setContentView:cocoaView]; |
775 | 775 |
[normalWindow useOptimizedDrawing:YES]; |
776 | 776 |
[normalWindow makeKeyAndOrderFront:self]; |
777 |
[normalWindow center];
|
|
777 |
[normalWindow center];
|
|
778 | 778 |
|
779 | 779 |
} |
780 | 780 |
return self; |
Also available in: Unified diff