bitmaps.c File Reference

#include "frontier.h"
#include "standard.h"
#include <land.h>
#include "mac.h"
#include "quickdraw.h"
#include "font.h"
#include "bitmaps.h"
#include "shellhooks.h"

Include dependency graph for bitmaps.c:

Go to the source code of this file.

Defines

#define qd32trap   0xAB03
#define unimptrap   0xA89F

Functions

static boolean openworld (Rect r, WindowPtr w)
static void closeworld (WindowPtr w)
static void initworld (void)
static boolean openmono (Rect r, WindowPtr w)
static void closemono (WindowPtr w)
static void initmono (void)
boolean openbitmap (Rect r, WindowPtr w)
boolean openbitmapcopy (Rect r, WindowPtr w)
void closebitmap (WindowPtr w)
static boolean trapimplemented (short trapnum)
static boolean flushbitmap (long *ctbytesneeded)
void initbitmaps (boolean fl)

Variables

static boolean flbitmapsenabled = false
static boolean flbitmapopen = false
static BitMap offscreenbitmap
static Handle bitmapbasehandle
static boolean flhas32bitqd = false
static CGrafPtr psavedport
static GWorldPtr poffscreenworld
static GDHandle hsavedgd
static Rect offscreenrect


Define Documentation

#define qd32trap   0xAB03
 

Definition at line 47 of file bitmaps.c.

Referenced by initbitmaps().

#define unimptrap   0xA89F
 

Definition at line 51 of file bitmaps.c.

Referenced by trapimplemented().


Function Documentation

void closebitmap WindowPtr  w  ) 
 

Definition at line 346 of file bitmaps.c.

static void closemono WindowPtr  w  )  [static]
 

Definition at line 248 of file bitmaps.c.

References assert, bitmapbasehandle, HUnlock, nil, offscreenbitmap, and psavedport.

Referenced by closebitmap().

static void closeworld WindowPtr  w  )  [static]
 

Definition at line 165 of file bitmaps.c.

References hsavedgd, nil, offscreenrect, poffscreenworld, and psavedport.

Referenced by closebitmap().

static boolean flushbitmap long ctbytesneeded  )  [static]
 

Definition at line 377 of file bitmaps.c.

References bitmapbasehandle, flbitmapopen, GetHandleSize, and SetHandleSize.

Referenced by initbitmaps().

void initbitmaps boolean  fl  ) 
 

Definition at line 390 of file bitmaps.c.

References flbitmapsenabled, flhas32bitqd, flushbitmap(), gHasColorQD, initmono(), initworld(), noErr, qd32trap, shellpushmemoryhook(), and trapimplemented().

Here is the call graph for this function:

static void initmono void   )  [static]
 

Definition at line 275 of file bitmaps.c.

References bitmapbasehandle, NewHandle, and offscreenbitmap.

Referenced by initbitmaps().

static void initworld void   )  [static]
 

Definition at line 197 of file bitmaps.c.

References nil, and poffscreenworld.

Referenced by initbitmaps().

boolean openbitmap Rect  r,
WindowPtr  w
 

Definition at line 287 of file bitmaps.c.

boolean openbitmapcopy Rect  r,
WindowPtr  w
 

Definition at line 315 of file bitmaps.c.

References assert, flhas32bitqd, nil, offscreenbitmap, openbitmap(), poffscreenworld, and psavedport.

Here is the call graph for this function:

static boolean openmono Rect  r,
WindowPtr  w
[static]
 

Definition at line 203 of file bitmaps.c.

References bitmapbasehandle, GetHandleSize, HLock, odd, offscreenbitmap, and SetHandleSize.

Referenced by openbitmap().

static boolean openworld Rect  r,
WindowPtr  w
[static]
 

Definition at line 78 of file bitmaps.c.

References getfontsizestyle(), hsavedgd, localtoglobalrect(), nil, noErr, offscreenrect, poffscreenworld, psavedport, and setfontsizestyle().

Referenced by openbitmap().

Here is the call graph for this function:

static boolean trapimplemented short  trapnum  )  [static]
 

Definition at line 362 of file bitmaps.c.

References unimptrap.

Referenced by initbitmaps().


Variable Documentation

Handle bitmapbasehandle [static]
 

Definition at line 64 of file bitmaps.c.

Referenced by closemono(), flushbitmap(), initmono(), and openmono().

boolean flbitmapopen = false [static]
 

Definition at line 57 of file bitmaps.c.

Referenced by closebitmap(), flushbitmap(), and openbitmap().

boolean flbitmapsenabled = false [static]
 

Definition at line 55 of file bitmaps.c.

Referenced by closebitmap(), initbitmaps(), and openbitmap().

boolean flhas32bitqd = false [static]
 

Definition at line 66 of file bitmaps.c.

Referenced by closebitmap(), initbitmaps(), openbitmap(), openbitmapcopy(), and systemhas32bitqd().

GDHandle hsavedgd [static]
 

Definition at line 72 of file bitmaps.c.

Referenced by closeworld(), and openworld().

BitMap offscreenbitmap [static]
 

Definition at line 62 of file bitmaps.c.

Referenced by closemono(), initmono(), openbitmapcopy(), and openmono().

Rect offscreenrect [static]
 

Definition at line 74 of file bitmaps.c.

Referenced by closebitmap(), closeworld(), openbitmap(), and openworld().

GWorldPtr poffscreenworld [static]
 

Definition at line 70 of file bitmaps.c.

Referenced by closeworld(), initworld(), openbitmapcopy(), and openworld().

CGrafPtr psavedport [static]
 

Definition at line 68 of file bitmaps.c.

Referenced by closemono(), closeworld(), openbitmapcopy(), and openworld().


Generated on Wed May 31 22:42:55 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6