mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024002: Overall code and build procedure refactoring -- Mac OSX
Draw_Window_1.mm, Cocoa_Window.mm - fix compilation issues on OS X CMake env.build.sh - fix libraries path MSVC project templates - /bigobj flag added for all configurations (x64, x86, release and debug) Standard_Type.hxx - enforce initialization of all type descriptors at library load
This commit is contained in:
@@ -531,18 +531,12 @@ Standard_Boolean Draw_Window::Save (Standard_CString theFileName) const
|
||||
[NSNumber numberWithInt: NSJPEGFileType], @"jpg",
|
||||
[NSNumber numberWithInt: NSGIFFileType], @"gif",
|
||||
nil];
|
||||
|
||||
NSBitmapImageFileType aFileType;
|
||||
|
||||
if ([aFileTypeDict valueForKey: aFileExtension] != nil)
|
||||
{
|
||||
aFileType = [[aFileTypeDict valueForKey: aFileExtension] intValue];
|
||||
}
|
||||
else
|
||||
if ([aFileTypeDict valueForKey: aFileExtension] == NULL)
|
||||
{
|
||||
return Standard_False; // unsupported image extension
|
||||
}
|
||||
|
||||
NSBitmapImageFileType aFileType = (NSBitmapImageFileType )[[aFileTypeDict valueForKey: aFileExtension] intValue];
|
||||
NSBitmapImageRep* anImageRep = [NSBitmapImageRep imageRepWithData: [myImageBuffer TIFFRepresentation]];
|
||||
|
||||
NSData* aData = [anImageRep representationUsingType: aFileType
|
||||
|
Reference in New Issue
Block a user