mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
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:
parent
d78b73e3c5
commit
91fd13373a
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue