src/video/macrom/SDL_romvideo.c
branchSDL-1.3
changeset 1659 14717b52abc0
parent 1658 e49147870aac
child 1662 782fd950bd46
     1.1 --- a/src/video/macrom/SDL_romvideo.c	Mon May 01 06:58:33 2006 +0000
     1.2 +++ b/src/video/macrom/SDL_romvideo.c	Wed May 17 08:18:28 2006 +0000
     1.3 @@ -35,6 +35,7 @@
     1.4  #include <Movies.h>
     1.5  #endif
     1.6  #else
     1.7 +#include <Quickdraw.h>
     1.8  #include <LowMem.h>
     1.9  #include <Gestalt.h>
    1.10  #include <Devices.h>
    1.11 @@ -637,12 +638,12 @@
    1.12  	SetPortWindowPort(SDL_Window);
    1.13  	thePort = GetWindowPort(SDL_Window);
    1.14  	memworld = (GWorldPtr)GetWRefCon(SDL_Window);
    1.15 -#if TARGET_API_MAC_CARBON
    1.16 +#if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS
    1.17  	memBits = GetPortBitMapForCopyBits((CGrafPtr) memworld);
    1.18  #else
    1.19  	memBits = &((GrafPtr)memworld)->portBits;
    1.20  #endif
    1.21 -#if TARGET_API_MAC_CARBON
    1.22 +#if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS
    1.23  	winBits = GetPortBitMapForCopyBits(thePort);
    1.24  #else
    1.25  	winBits = &SDL_Window->portBits;