Added GSResolutionForScreen.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11857 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2001-12-21 00:48:03 +00:00
parent d78b73e3c5
commit 91fd13373a
2 changed files with 8 additions and 2 deletions

View file

@ -599,7 +599,6 @@ typedef struct {
void (*NSBeep)(NSGraphicsContext*, SEL);
/* Context helper wraps */
unsigned int (*GSWDefineAsUserObj)(NSGraphicsContext*, SEL);
BOOL (*GSWViewIsFlipped)(NSGraphicsContext*, SEL);
@ -608,7 +607,7 @@ typedef struct {
const NSWindowDepth *(*GSAvailableDepthsForScreen_)(NSGraphicsContext*, SEL,
int screen);
NSSize (*GSResolutionForScreen_)(NSGraphicsContext*, SEL, int screen);
} gsMethodTable;

View file

@ -298,6 +298,13 @@ GSAvailableDepthsForScreen(NSGraphicsContext *ctxt, int screen_num)
(ctxt, @selector(GSAvailableDepthsForScreen:), screen_num);
}
static inline NSSize
GSResolutionForScreen(NSGraphicsContext *ctxt, int screen_num)
{
return (ctxt->methods->GSResolutionForScreen_)
(ctxt, @selector(GSResolutionForScreen:), screen_num);
}
#ifndef NO_GNUSTEP
@class NSArray;
@class NSWindow;