* TextConverters/RTF/RTFProducer.m (-_addAttributesString:):

Correctly handle NSUnderlineStyleNone. This fixes bug #37043.
        * Headers/AppKit/NSOpenGL.h,
        * Source/NSOpenGLContext.m: New 10.6 methods to get/set the
        * CGLContextObj.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35358 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2012-08-07 20:50:45 +00:00
parent cc564506fd
commit 4d8b1b42a9
4 changed files with 34 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2012-08-07 Fred Kiefer <FredKiefer@gmx.de>
* TextConverters/RTF/RTFProducer.m (-_addAttributesString:):
Correctly handle NSUnderlineStyleNone. This fixes bug #37043.
* Headers/AppKit/NSOpenGL.h,
* Source/NSOpenGLContext.m: New 10.6 methods to get/set the CGLContextObj.
2012-08-06 Riccardo Mottola <rm@gnu.org>
* Source/GSServicesManager.m

View file

@ -102,20 +102,27 @@ typedef enum {
+ (void)clearCurrentContext;
+ (NSOpenGLContext *)currentContext;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_3, GS_API_LATEST)
- (void *)CGLContextObj;
#endif
- (void)clearDrawable;
- (void)copyAttributesFromContext:(NSOpenGLContext *)context
withMask:(unsigned long)mask;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_2, GS_API_LATEST)
- (void)createTexture:(unsigned long)target
fromView:(NSView*)view
internalFormat:(unsigned long)format;
- (int)currentVirtualScreen;
#endif
- (void)flushBuffer;
- (void)getValues:(long *)vals
forParameter:(NSOpenGLContextParameter)param;
#if OS_API_VERSION(MAC_OS_X_VERSION_10_6, GS_API_LATEST)
- (id)initWithCGLContextObj:(void *)context;
#endif
- (id)initWithFormat:(NSOpenGLPixelFormat *)format
shareContext:(NSOpenGLContext *)share;
@ -140,7 +147,6 @@ typedef enum {
- (NSView *)view;
@end

View file

@ -69,6 +69,12 @@
return [[self _classContext] currentContext];
}
- (void *)CGLContextObj
{
[self subclassResponsibility: _cmd];
return NULL;
}
- (void)clearDrawable
{
[self subclassResponsibility: _cmd];
@ -107,16 +113,19 @@
[self subclassResponsibility: _cmd];
}
- (id)initWithCGLContextObj:(void *)context
{
[self subclassResponsibility: _cmd];
return nil;
}
- (id)initWithFormat:(NSOpenGLPixelFormat *)format
shareContext:(NSOpenGLContext *)share
{
[self subclassResponsibility: _cmd];
return 0;
return nil;
}
- (void)makeCurrentContext
{
[self subclassResponsibility: _cmd];

View file

@ -888,12 +888,18 @@
}
else if ([attributeName isEqualToString: NSUnderlineStyleAttributeName])
{
NSInteger styleMask = [[attributesToAdd objectForKey: NSUnderlineStyleAttributeName] integerValue];
NSInteger styleMask = [[attributesToAdd objectForKey:
NSUnderlineStyleAttributeName] integerValue];
if ((styleMask & NSUnderlineByWordMask) == NSUnderlineByWordMask)
{
[result appendString: @"\\ulw"];
}
if (styleMask == NSUnderlineStyleNone)
{
[result appendString: @"\\ulnone"];
}
else if ((styleMask & NSUnderlineStyleDouble) == NSUnderlineStyleDouble)
{
[result appendString: @"\\uldb"];