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:
akallabeth
2022-04-28 05:43:31 +02:00
committed by akallabeth
parent d3e1810473
commit fb90ac280a
53 changed files with 985 additions and 922 deletions

View File

@@ -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);