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