Skip to content

Commit

Permalink
Fixed bug #226
Browse files Browse the repository at this point in the history
Just to make it compile with old CodeWarrior.
  • Loading branch information
slouken committed May 11, 2006
1 parent e494c2b commit 20ba12c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/video/macdsp/SDL_dspvideo.c
Expand Up @@ -682,7 +682,7 @@ static int DSp_ConfirmSwitch () {
if (dialog == NULL)
return (0);

#if TARGET_API_CARBON
#if TARGET_API_MAC_CARBON
SetPort (GetDialogPort(dialog));
#else
SetPort ((WindowPtr) dialog);
Expand Down
5 changes: 3 additions & 2 deletions src/video/macrom/SDL_romvideo.c
Expand Up @@ -35,6 +35,7 @@
#include <Movies.h>
#endif
#else
#include <Quickdraw.h>
#include <LowMem.h>
#include <Gestalt.h>
#include <Devices.h>
Expand Down Expand Up @@ -637,12 +638,12 @@ static void ROM_WindowUpdate(_THIS, int numrects, SDL_Rect *rects)
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;
Expand Down

0 comments on commit 20ba12c

Please sign in to comment.