And fixed build errors. Now I'm sure there are warnings that are real bugs, so let's handle those next.
This commit is contained in:
parent
c82197f408
commit
9194ba29fe
|
@ -5,6 +5,8 @@
|
||||||
#define uiprivAlloc(x, y) uiAlloc(x, y)
|
#define uiprivAlloc(x, y) uiAlloc(x, y)
|
||||||
#define uiprivRealloc(x, y, z) uiRealloc(x, y, z)
|
#define uiprivRealloc(x, y, z) uiRealloc(x, y, z)
|
||||||
#define uiprivFree(x) uiFree(x)
|
#define uiprivFree(x) uiFree(x)
|
||||||
|
#define uiprivStrdup(x) strdup(x)
|
||||||
|
#define uiprivStricmp(x, y) strcasecmp(x, y)
|
||||||
|
|
||||||
// attribute.c
|
// attribute.c
|
||||||
extern uiAttribute *uiprivAttributeRetain(uiAttribute *a);
|
extern uiAttribute *uiprivAttributeRetain(uiAttribute *a);
|
||||||
|
|
|
@ -281,7 +281,7 @@ static backgroundBlock mkBackgroundBlock(size_t start, size_t end, double r, dou
|
||||||
brush.G = g;
|
brush.G = g;
|
||||||
brush.B = b;
|
brush.B = b;
|
||||||
brush.A = a;
|
brush.A = a;
|
||||||
drawTextBackground(c, x, y, layout, start, end, &brush, 0);
|
//TODO drawTextBackground(c, x, y, layout, start, end, &brush, 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -463,7 +463,7 @@ CFAttributedStringRef uiprivAttributedStringToCFAttributedString(uiDrawTextLayou
|
||||||
CFMutableAttributedStringRef mas;
|
CFMutableAttributedStringRef mas;
|
||||||
struct foreachParams fep;
|
struct foreachParams fep;
|
||||||
|
|
||||||
cfstr = CFStringCreateWithCharacters(NULL, attrstrUTF16(p->String), attrstrUTF16Len(p->String));
|
cfstr = CFStringCreateWithCharacters(NULL, uiprivAttributedStringUTF16String(p->String), uiprivAttributedStringUTF16Len(p->String));
|
||||||
if (cfstr == NULL) {
|
if (cfstr == NULL) {
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
|
@ -450,7 +450,7 @@ CTFontDescriptorRef uiprivCTFontDescriptorAppendFeatures(CTFontDescriptorRef des
|
||||||
CFDictionaryRef attrs;
|
CFDictionaryRef attrs;
|
||||||
const void *keys[1], *values[1];
|
const void *keys[1], *values[1];
|
||||||
|
|
||||||
featuresArray = otfToFeaturesArray(otf);
|
featuresArray = uiprivOpenTypeFeaturesToCTFeatures(otf);
|
||||||
keys[0] = kCTFontFeatureSettingsAttribute;
|
keys[0] = kCTFontFeatureSettingsAttribute;
|
||||||
values[0] = featuresArray;
|
values[0] = featuresArray;
|
||||||
attrs = CFDictionaryCreate(NULL,
|
attrs = CFDictionaryCreate(NULL,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// 6 april 2015
|
// 6 april 2015
|
||||||
#import "uipriv_darwin.h"
|
#import "uipriv_darwin.h"
|
||||||
|
#import "attrstr.h"
|
||||||
|
|
||||||
static BOOL canQuit = NO;
|
static BOOL canQuit = NO;
|
||||||
static NSAutoreleasePool *globalPool;
|
static NSAutoreleasePool *globalPool;
|
||||||
|
@ -128,7 +129,7 @@ const char *uiInit(uiInitOptions *o)
|
||||||
|
|
||||||
uiprivSetupFontPanel();
|
uiprivSetupFontPanel();
|
||||||
|
|
||||||
initUnderlineColors();
|
uiprivInitUnderlineColors();
|
||||||
}
|
}
|
||||||
|
|
||||||
globalPool = [[NSAutoreleasePool alloc] init];
|
globalPool = [[NSAutoreleasePool alloc] init];
|
||||||
|
@ -144,7 +145,7 @@ void uiUninit(void)
|
||||||
[globalPool release];
|
[globalPool release];
|
||||||
|
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
uninitUnderlineColors();
|
uiprivUninitUnderlineColors();
|
||||||
[delegate release];
|
[delegate release];
|
||||||
[realNSApp() setDelegate:nil];
|
[realNSApp() setDelegate:nil];
|
||||||
[app release];
|
[app release];
|
||||||
|
|
Loading…
Reference in New Issue