Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1810:4c270c3a88ed | 1811:e6de7e5fd451 |
---|---|
33 */ | 33 */ |
34 #if USE_QUICKTIME | 34 #if USE_QUICKTIME |
35 #include <Movies.h> | 35 #include <Movies.h> |
36 #endif | 36 #endif |
37 #else | 37 #else |
38 #include <Quickdraw.h> | |
38 #include <LowMem.h> | 39 #include <LowMem.h> |
39 #include <Gestalt.h> | 40 #include <Gestalt.h> |
40 #include <Devices.h> | 41 #include <Devices.h> |
41 #include <DiskInit.h> | 42 #include <DiskInit.h> |
42 #include <QDOffscreen.h> | 43 #include <QDOffscreen.h> |
635 /* Copy from the offscreen GWorld to the window port */ | 636 /* Copy from the offscreen GWorld to the window port */ |
636 GetPort(&saveport); | 637 GetPort(&saveport); |
637 SetPortWindowPort(SDL_Window); | 638 SetPortWindowPort(SDL_Window); |
638 thePort = GetWindowPort(SDL_Window); | 639 thePort = GetWindowPort(SDL_Window); |
639 memworld = (GWorldPtr)GetWRefCon(SDL_Window); | 640 memworld = (GWorldPtr)GetWRefCon(SDL_Window); |
640 #if TARGET_API_MAC_CARBON | 641 #if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS |
641 memBits = GetPortBitMapForCopyBits((CGrafPtr) memworld); | 642 memBits = GetPortBitMapForCopyBits((CGrafPtr) memworld); |
642 #else | 643 #else |
643 memBits = &((GrafPtr)memworld)->portBits; | 644 memBits = &((GrafPtr)memworld)->portBits; |
644 #endif | 645 #endif |
645 #if TARGET_API_MAC_CARBON | 646 #if TARGET_API_MAC_CARBON && ACCESSOR_CALLS_ARE_FUNCTIONS |
646 winBits = GetPortBitMapForCopyBits(thePort); | 647 winBits = GetPortBitMapForCopyBits(thePort); |
647 #else | 648 #else |
648 winBits = &SDL_Window->portBits; | 649 winBits = &SDL_Window->portBits; |
649 #endif | 650 #endif |
650 for ( i=0; i<numrects; ++i ) { | 651 for ( i=0; i<numrects; ++i ) { |