Mercurial > sdl-ios-xcode
diff src/video/macrom/SDL_romvideo.c @ 1811:e6de7e5fd451
Fixed bug #226
Just to make it compile with old CodeWarrior.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 11 May 2006 03:21:54 +0000 |
parents | f12379c41042 |
children | c121d94672cb 70dac8976f94 |
line wrap: on
line diff
--- a/src/video/macrom/SDL_romvideo.c Thu May 11 03:19:03 2006 +0000 +++ b/src/video/macrom/SDL_romvideo.c Thu May 11 03:21:54 2006 +0000 @@ -35,6 +35,7 @@ #include <Movies.h> #endif #else +#include <Quickdraw.h> #include <LowMem.h> #include <Gestalt.h> #include <Devices.h> @@ -637,12 +638,12 @@ SetPortWindowPort(SDL_Window); thePort = GetWindowPort(SDL_Window); memworld = (GWorldPtr)GetWRefCon(SDL_Window); -#if TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS memBits = GetPortBitMapForCopyBits((CGrafPtr) memworld); #else memBits = &((GrafPtr)memworld)->portBits; #endif -#if TARGET_API_MAC_CARBON +#if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS winBits = GetPortBitMapForCopyBits(thePort); #else winBits = &SDL_Window->portBits;