Fixed bug #226
authorSam Lantinga <slouken@libsdl.org>
Thu, 11 May 2006 03:21:54 +0000
changeset 1811e6de7e5fd451
parent 1810 4c270c3a88ed
child 1812 9c882e94b545
Fixed bug #226

Just to make it compile with old CodeWarrior.
src/video/macdsp/SDL_dspvideo.c
src/video/macrom/SDL_romvideo.c
     1.1 --- a/src/video/macdsp/SDL_dspvideo.c	Thu May 11 03:19:03 2006 +0000
     1.2 +++ b/src/video/macdsp/SDL_dspvideo.c	Thu May 11 03:21:54 2006 +0000
     1.3 @@ -682,7 +682,7 @@
     1.4    if (dialog == NULL)
     1.5  	 return (0);
     1.6    
     1.7 -#if TARGET_API_CARBON
     1.8 +#if TARGET_API_MAC_CARBON
     1.9    SetPort (GetDialogPort(dialog));
    1.10  #else
    1.11    SetPort ((WindowPtr) dialog);
     2.1 --- a/src/video/macrom/SDL_romvideo.c	Thu May 11 03:19:03 2006 +0000
     2.2 +++ b/src/video/macrom/SDL_romvideo.c	Thu May 11 03:21:54 2006 +0000
     2.3 @@ -35,6 +35,7 @@
     2.4  #include <Movies.h>
     2.5  #endif
     2.6  #else
     2.7 +#include <Quickdraw.h>
     2.8  #include <LowMem.h>
     2.9  #include <Gestalt.h>
    2.10  #include <Devices.h>
    2.11 @@ -637,12 +638,12 @@
    2.12  	SetPortWindowPort(SDL_Window);
    2.13  	thePort = GetWindowPort(SDL_Window);
    2.14  	memworld = (GWorldPtr)GetWRefCon(SDL_Window);
    2.15 -#if TARGET_API_MAC_CARBON
    2.16 +#if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS
    2.17  	memBits = GetPortBitMapForCopyBits((CGrafPtr) memworld);
    2.18  #else
    2.19  	memBits = &((GrafPtr)memworld)->portBits;
    2.20  #endif
    2.21 -#if TARGET_API_MAC_CARBON
    2.22 +#if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS
    2.23  	winBits = GetPortBitMapForCopyBits(thePort);
    2.24  #else
    2.25  	winBits = &SDL_Window->portBits;