minor cleanup

This commit is contained in:
Christopher Lloyd 2009-06-27 01:16:13 +00:00
parent 1717ab2d16
commit 787a416ee0
3 changed files with 1 additions and 5 deletions

View File

@ -6,9 +6,6 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#import <AppKit/NSDisplay.h>
#import <AppKit/NSFont.h>
#import <AppKit/NSEvent_periodic.h>
#import <AppKit/NSApplication.h>
#import <AppKit/NSRaise.h>
@implementation NSDisplay

View File

@ -11,7 +11,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
#import <AppKit/NSWindow.h>
#import <AppKit/NSGraphicsContextFunctions.h>
#import <ApplicationServices/ApplicationServices.h>
#import <AppKit/NSDisplay.h>
#import <Foundation/NSKeyedArchiver.h>
#import <AppKit/NSRaise.h>

View File

@ -250,7 +250,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
-(void)selectFontWithName:(const char *)name size:(float)size encoding:(int)encoding {
KGFont *font=[KGFont createWithFontName:[NSString stringWithCString:name]];
KGFont *font=O2FontCreateWithFontName([NSString stringWithCString:name]);
if(font!=nil){
[_font release];