From fa8b04cfe40181d251e468d16242ed071731bf81 Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Fri, 21 Dec 2001 00:49:09 +0000 Subject: [PATCH] Implemented [GSResolutionForScreen:] with code from NSScreen. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11858 72102866-910b-0410-8b05-ffd578937521 --- Source/NSGraphicsContext.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Source/NSGraphicsContext.m b/Source/NSGraphicsContext.m index 23f368530..9a7f242d8 100644 --- a/Source/NSGraphicsContext.m +++ b/Source/NSGraphicsContext.m @@ -1000,6 +1000,8 @@ NSGraphicsContext *GSCurrentContext() GET_IMP(@selector(GSWindowDepthForScreen:)); methodTable.GSAvailableDepthsForScreen_ = GET_IMP(@selector(GSAvailableDepthsForScreen:)); + methodTable.GSResolutionForScreen_ = + GET_IMP(@selector(GSResolutionForScreen:)); mptr = NSZoneMalloc(_globalGSZone, sizeof(gsMethodTable)); memcpy(mptr, &methodTable, sizeof(gsMethodTable)); @@ -2727,4 +2729,11 @@ NSGraphicsContext *GSCurrentContext() return NULL; } +- (NSSize) GSResolutionForScreen: (int) screen +{ + // This is a fixed value for screens. + // All screens I checked under OS4.2 report 72. + return NSMakeSize(72, 72); +} + @end