annotate src/device-msw.c @ 249:83b3d10dcba9 r20-5b23

Import from CVS: tag r20-5b23
author cvs
date Mon, 13 Aug 2007 10:19:09 +0200
parents 51092a27c943
children 727739f917cb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
1 /* Device functions for mswindows.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
2 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
3 Copyright (C) 1994, 1995 Free Software Foundation, Inc.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
4
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
5 This file is part of XEmacs.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
6
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
7 XEmacs is free software; you can redistribute it and/or modify it
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
8 under the terms of the GNU General Public License as published by the
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
9 Free Software Foundation; either version 2, or (at your option) any
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
10 later version.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
11
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
15 for more details.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
16
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
17 You should have received a copy of the GNU General Public License
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
18 along with XEmacs; see the file COPYING. If not, write to
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
20 Boston, MA 02111-1307, USA. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
21
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
22 /* Synched up with: Not in FSF. */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
23
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
24 /* Authorship:
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
25
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
26 Original authors: Jamie Zawinski and the FSF
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
27 Rewritten by Ben Wing and Chuck Thompson.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
28 Rewritten for mswindows by Jonathan Harris, November 1997 for 20.4.
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
29 */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
30
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
31
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
32 #include <config.h>
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
33 #include "lisp.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
34
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
35 #include "console-msw.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
36 #include "console-stream.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
37 #include "events.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
38 #include "faces.h"
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
39 #include "frame.h"
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
40 #include "sysdep.h"
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
41
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
42 /* win32 DDE management library globals */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
43 DWORD mswindows_dde_mlid;
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
44 HSZ mswindows_dde_service;
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
45 HSZ mswindows_dde_topic_system;
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
46 HSZ mswindows_dde_item_open;
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
47
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
48 Lisp_Object Qinit_pre_mswindows_win, Qinit_post_mswindows_win;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
49
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
50 static void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
51 mswindows_init_device (struct device *d, Lisp_Object props)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
52 {
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
53 WNDCLASSEX wc;
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
54 HWND desktop;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
55 HDC hdc;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
56
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
57 DEVICE_INFD (d) = DEVICE_OUTFD (d) = -1;
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
58 init_baud_rate (d);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
59 init_one_device (d);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
60
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
61 d->device_data = xnew_and_zero (struct mswindows_device);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
62
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
63 desktop = GetDesktopWindow();
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
64 hdc = GetDC(desktop);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
65 DEVICE_MSWINDOWS_LOGPIXELSX(d) = GetDeviceCaps(hdc, LOGPIXELSX);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
66 DEVICE_MSWINDOWS_LOGPIXELSY(d) = GetDeviceCaps(hdc, LOGPIXELSY);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
67 DEVICE_MSWINDOWS_PLANES(d) = GetDeviceCaps(hdc, PLANES);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
68 /* FIXME: Only valid if RC_PALETTE bit set in RASTERCAPS,
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
69 what should we return for a non-palette-based device? */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
70 DEVICE_MSWINDOWS_CELLS(d) = GetDeviceCaps(hdc, SIZEPALETTE);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
71 DEVICE_MSWINDOWS_HORZRES(d) = GetDeviceCaps(hdc, HORZRES);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
72 DEVICE_MSWINDOWS_VERTRES(d) = GetDeviceCaps(hdc, VERTRES);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
73 DEVICE_MSWINDOWS_HORZSIZE(d) = GetDeviceCaps(hdc, HORZSIZE);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
74 DEVICE_MSWINDOWS_VERTSIZE(d) = GetDeviceCaps(hdc, VERTSIZE);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
75 ReleaseDC(desktop, hdc);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
76
217
d44af0c54775 Import from CVS: tag r20-4b7
cvs
parents: 213
diff changeset
77 DEVICE_CLASS(d) = Qcolor;
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
78
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
79 /* Register the main window class */
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
80 wc.cbSize = sizeof (WNDCLASSEX);
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
81 wc.style = CS_OWNDC; /* One DC per window */
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
82 wc.lpfnWndProc = (WNDPROC) mswindows_wnd_proc;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
83 wc.cbClsExtra = 0;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
84 wc.cbWndExtra = MSWINDOWS_WINDOW_EXTRA_BYTES;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
85 wc.hInstance = NULL; /* ? */
227
0e522484dd2a Import from CVS: tag r20-5b12
cvs
parents: 223
diff changeset
86 wc.hIcon = LoadIcon (GetModuleHandle(NULL), XEMACS_CLASS);
223
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
87 wc.hCursor = LoadCursor (NULL, IDC_ARROW);
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
88 /* Background brush is only used during sizing, when XEmacs cannot
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
89 take over */
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
90 wc.hbrBackground = (HBRUSH)(COLOR_APPWORKSPACE + 1);
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
91 wc.lpszMenuName = NULL;
2c611d1463a6 Import from CVS: tag r20-4b10
cvs
parents: 217
diff changeset
92 wc.lpszClassName = XEMACS_CLASS;
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
93 wc.hIconSm = LoadImage (GetModuleHandle (NULL), XEMACS_CLASS,
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
94 IMAGE_ICON, 16, 16, 0);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
95 RegisterClassEx (&wc);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
96 }
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
97
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
98 static void
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
99 mswindows_finish_init_device (struct device *d, Lisp_Object props)
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
100 {
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
101 /* Initialise DDE management library and our related globals */
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
102 mswindows_dde_mlid = 0;
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
103 DdeInitialize (&mswindows_dde_mlid, mswindows_dde_callback,
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
104 APPCMD_FILTERINITS|CBF_FAIL_SELFCONNECTIONS|CBF_FAIL_ADVISES|
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
105 CBF_FAIL_POKES|CBF_FAIL_REQUESTS|CBF_SKIP_ALLNOTIFICATIONS, 0);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
106
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
107 mswindows_dde_service = DdeCreateStringHandle (mswindows_dde_mlid, XEMACS_CLASS, 0);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
108 mswindows_dde_topic_system = DdeCreateStringHandle (mswindows_dde_mlid, SZDDESYS_TOPIC, 0);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
109 mswindows_dde_item_open = DdeCreateStringHandle (mswindows_dde_mlid,
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
110 TEXT(MSWINDOWS_DDE_ITEM_OPEN), 0);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
111 DdeNameService (mswindows_dde_mlid, mswindows_dde_service, 0L, DNS_REGISTER);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
112 }
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
113
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
114 static void
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
115 mswindows_delete_device (struct device *d)
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
116 {
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
117 DdeNameService (mswindows_dde_mlid, 0L, 0L, DNS_REGISTER);
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
118 DdeUninitialize (mswindows_dde_mlid);
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
119 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
120
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
121 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
122 mswindows_device_pixel_width (struct device *d)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
123 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
124 return(DEVICE_MSWINDOWS_HORZRES(d));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
125 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
126
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
127 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
128 mswindows_device_pixel_height (struct device *d)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
129 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
130 return(DEVICE_MSWINDOWS_VERTRES(d));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
131 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
132
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
133 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
134 mswindows_device_mm_width (struct device *d)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
135 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
136 return(DEVICE_MSWINDOWS_HORZSIZE(d));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
137 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
138
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
139 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
140 mswindows_device_mm_height (struct device *d)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
141 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
142 return(DEVICE_MSWINDOWS_VERTSIZE(d));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
143 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
144
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
145 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
146 mswindows_device_bitplanes (struct device *d)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
147 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
148 return(DEVICE_MSWINDOWS_PLANES(d));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
149 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
150
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
151 static int
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
152 mswindows_device_color_cells (struct device *d)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
153 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
154 return(DEVICE_MSWINDOWS_CELLS(d));
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
155 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
156
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
157
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
158 /************************************************************************/
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
159 /* initialization */
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
160 /************************************************************************/
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
161
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
162 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
163 syms_of_device_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
164 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
165 defsymbol (&Qinit_pre_mswindows_win, "init-pre-mswindows-win");
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
166 defsymbol (&Qinit_post_mswindows_win, "init-post-mswindows-win");
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
167 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
168
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
169 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
170 console_type_create_device_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
171 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
172 CONSOLE_HAS_METHOD (mswindows, init_device);
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
173 CONSOLE_HAS_METHOD (mswindows, finish_init_device);
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
174 /* CONSOLE_HAS_METHOD (mswindows, mark_device); */
249
83b3d10dcba9 Import from CVS: tag r20-5b23
cvs
parents: 245
diff changeset
175 CONSOLE_HAS_METHOD (mswindows, delete_device);
213
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
176 CONSOLE_HAS_METHOD (mswindows, device_pixel_width);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
177 CONSOLE_HAS_METHOD (mswindows, device_pixel_height);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
178 CONSOLE_HAS_METHOD (mswindows, device_mm_width);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
179 CONSOLE_HAS_METHOD (mswindows, device_mm_height);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
180 CONSOLE_HAS_METHOD (mswindows, device_bitplanes);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
181 CONSOLE_HAS_METHOD (mswindows, device_color_cells);
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
182 }
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
183
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
184 void
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
185 vars_of_device_mswindows (void)
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
186 {
78f53ef88e17 Import from CVS: tag r20-4b5
cvs
parents:
diff changeset
187 }