ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/MacOSX/video_macosx.h
Revision: 1.1
Committed: 2002-03-16T04:00:32Z (22 years, 7 months ago) by nigel
Content type: text/plain
Branch: MAIN
CVS Tags: nigel-build-10
Log Message:
Initial revision of Mac OS X port code. Uses Objective-C++. Needs Mac OS 10.1

File Contents

# User Rev Content
1 nigel 1.1 /*
2     * video_macosx.h - Some video constants and globals
3     *
4     * $Id$
5     *
6     * Basilisk II (C) 1997-2001 Christian Bauer
7     *
8     * This program is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License as published by
10     * the Free Software Foundation; either version 2 of the License, or
11     * (at your option) any later version.
12     *
13     * This program is distributed in the hope that it will be useful,
14     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16     * GNU General Public License for more details.
17     *
18     * You should have received a copy of the GNU General Public License
19     * along with this program; if not, write to the Free Software
20     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21     */
22    
23     #import <video.h>
24    
25     /* Set the strategy for drawing the bitmap in the Mac OS X window */
26     //#define CGIMAGEREF 15.05fps
27     //#define CGDRAWBITMAP 15.2fps
28     #define NSBITMAP 15.1fps
29    
30     #define MIN_WIDTH 512
31     #define MIN_HEIGHT 342
32    
33     #define MAX_WIDTH 1240
34     #define MAX_HEIGHT 1024
35    
36     // Display types
37     enum
38     {
39     DISPLAY_OPENGL,
40     DISPLAY_SCREEN,
41     DISPLAY_WINDOW
42     };
43    
44    
45     extern uint8 display_type,
46     frame_skip;
47     extern uint16 init_width,
48     init_height,
49     init_depth,
50     screen_height;
51    
52     extern uint8 bits_from_depth (const video_depth);
53     extern bool parse_screen_prefs (const char *);
54     extern void resizeWinTo (const uint16, const uint16);
55    
56     #import <AppKit/NSWindow.h>
57     #import "EmulatorView.h"
58    
59     extern NSWindow *the_win;
60     extern EmulatorView *output;
61    
62     // These record changes we made in setting full screen mode
63     extern CGDirectDisplayID theDisplay;
64     extern CFDictionaryRef originalMode, newMode;
65    
66     // Macro for checking if full screen mode has started
67     #define FULLSCREEN ( theDisplay || originalMode || newMode )