Mercurial > dwindows
changeset 1949:c71e5da5b801
Mac: Fix mojave #ifdefs so it builds pre-mojave.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sat, 06 Jul 2019 18:57:29 +0000 |
parents | bbb1fb54f321 |
children | bb4eaf02cdaf |
files | mac/dw.m |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mac/dw.m Sat Jul 06 18:44:25 2019 +0000 +++ b/mac/dw.m Sat Jul 06 18:57:29 2019 +0000 @@ -607,7 +607,9 @@ #if !defined(GARBAGE_COLLECT) NSAutoreleasePool *pool; #endif +#ifndef BUILDING_FOR_MOJAVE HWND _DWLastDrawable; +#endif HMTX DWRunMutex; HMTX DWThreadMutex; HMTX DWThreadMutex2; @@ -864,6 +866,7 @@ -(NSFont *)font { return font; } -(void)setSize:(NSSize)input { size = input; +#ifdef BUILDING_FOR_MOJAVE if(cachedDrawingRep) { NSBitmapImageRep *oldrep = cachedDrawingRep; @@ -871,6 +874,7 @@ [cachedDrawingRep retain]; [oldrep release]; } +#endif } -(NSSize)size { return size; } #ifdef BUILDING_FOR_MOJAVE