1 |
nigel |
1.1 |
/* |
2 |
|
|
* video_macosx.h - Some video constants and globals |
3 |
|
|
* |
4 |
nigel |
1.3 |
* $Id: video_macosx.h,v 1.2 2002/05/30 12:43:32 nigel Exp $ |
5 |
nigel |
1.1 |
* |
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 |
nigel |
1.3 |
init_depth; |
50 |
nigel |
1.1 |
|
51 |
|
|
extern bool parse_screen_prefs (const char *); |
52 |
|
|
extern void resizeWinTo (const uint16, const uint16); |
53 |
|
|
|
54 |
|
|
#import <AppKit/NSWindow.h> |
55 |
|
|
#import "EmulatorView.h" |
56 |
|
|
|
57 |
|
|
extern NSWindow *the_win; |
58 |
|
|
extern EmulatorView *output; |