comparison src/video/macrom/SDL_romvideo.c @ 1659:14717b52abc0 SDL-1.3

Merge trunk-1.3-3
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 May 2006 08:18:28 +0000
parents e49147870aac
children 782fd950bd46
comparison
equal deleted inserted replaced
1658:e49147870aac 1659:14717b52abc0
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 ) {