mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-17 10:20:55 +00:00
fb65cd2b44
Obtaining a font has become rather expensive in recent gnustep, so cache fonts, obtaining new ones only when needed rather than every redraw. Makes things snappy again :)
17 lines
242 B
Objective-C
17 lines
242 B
Objective-C
#ifndef TextureView_h
|
|
#define TextureView_h
|
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
@interface TextureView: NSView
|
|
{
|
|
NSFont *font;
|
|
id parent_i;
|
|
int deselectIndex;
|
|
}
|
|
|
|
- (id) setParent: (id)from;
|
|
- (id) deselect;
|
|
|
|
@end
|
|
#endif // TextureView_h
|