mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Refactored color.h
* Remove implementations from header * Rename functions to be FreeRDP specific * Add deprecation define for old names * Fixed missing includes
This commit is contained in:
@@ -176,7 +176,7 @@ static void ios_create_bitmap_context(mfInfo *mfi)
|
||||
rdpGdi *gdi = mfi->instance->context->gdi;
|
||||
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
|
||||
|
||||
if (GetBytesPerPixel(gdi->dstFormat) == 2)
|
||||
if (FreeRDPGetBytesPerPixel(gdi->dstFormat) == 2)
|
||||
mfi->bitmap_context = CGBitmapContextCreate(
|
||||
gdi->primary_buffer, gdi->width, gdi->height, 5, gdi->stride, colorSpace,
|
||||
kCGBitmapByteOrder16Little | kCGImageAlphaNoneSkipFirst);
|
||||
|
||||
Reference in New Issue
Block a user