Commit 308d06a8 authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #226

Just to make it compile with old CodeWarrior.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401772
parent 72d910b2
...@@ -682,7 +682,7 @@ static int DSp_ConfirmSwitch () { ...@@ -682,7 +682,7 @@ static int DSp_ConfirmSwitch () {
if (dialog == NULL) if (dialog == NULL)
return (0); return (0);
#if TARGET_API_CARBON #if TARGET_API_MAC_CARBON
SetPort (GetDialogPort(dialog)); SetPort (GetDialogPort(dialog));
#else #else
SetPort ((WindowPtr) dialog); SetPort ((WindowPtr) dialog);
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <Movies.h> #include <Movies.h>
#endif #endif
#else #else
#include <Quickdraw.h>
#include <LowMem.h> #include <LowMem.h>
#include <Gestalt.h> #include <Gestalt.h>
#include <Devices.h> #include <Devices.h>
...@@ -637,12 +638,12 @@ static void ROM_WindowUpdate(_THIS, int numrects, SDL_Rect *rects) ...@@ -637,12 +638,12 @@ static void ROM_WindowUpdate(_THIS, int numrects, SDL_Rect *rects)
SetPortWindowPort(SDL_Window); SetPortWindowPort(SDL_Window);
thePort = GetWindowPort(SDL_Window); thePort = GetWindowPort(SDL_Window);
memworld = (GWorldPtr)GetWRefCon(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); memBits = GetPortBitMapForCopyBits((CGrafPtr) memworld);
#else #else
memBits = &((GrafPtr)memworld)->portBits; memBits = &((GrafPtr)memworld)->portBits;
#endif #endif
#if TARGET_API_MAC_CARBON #if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS
winBits = GetPortBitMapForCopyBits(thePort); winBits = GetPortBitMapForCopyBits(thePort);
#else #else
winBits = &SDL_Window->portBits; winBits = &SDL_Window->portBits;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment