comparison src/device-msw.c @ 288:e11d67e05968 r21-0b42

Import from CVS: tag r21-0b42
author cvs
date Mon, 13 Aug 2007 10:35:54 +0200
parents 558f606b08ae
children 4b85ae5eabfb
comparison
equal deleted inserted replaced
287:13a0bd77a29d 288:e11d67e05968
103 wc.hCursor = LoadCursor (NULL, IDC_ARROW); 103 wc.hCursor = LoadCursor (NULL, IDC_ARROW);
104 /* Background brush is only used during sizing, when XEmacs cannot 104 /* Background brush is only used during sizing, when XEmacs cannot
105 take over */ 105 take over */
106 wc.hbrBackground = (HBRUSH)(COLOR_APPWORKSPACE + 1); 106 wc.hbrBackground = (HBRUSH)(COLOR_APPWORKSPACE + 1);
107 wc.lpszMenuName = NULL; 107 wc.lpszMenuName = NULL;
108
108 wc.lpszClassName = XEMACS_CLASS; 109 wc.lpszClassName = XEMACS_CLASS;
109 wc.hIconSm = LoadImage (GetModuleHandle (NULL), XEMACS_CLASS, 110 wc.hIconSm = LoadImage (GetModuleHandle (NULL), XEMACS_CLASS,
110 IMAGE_ICON, 16, 16, 0); 111 IMAGE_ICON, 16, 16, 0);
111 RegisterClassEx (&wc); 112 RegisterClassEx (&wc);
112 #ifdef HAVE_TOOLBARS 113 #ifdef HAVE_TOOLBARS
190 case DM_size_device_mm: 191 case DM_size_device_mm:
191 return Fcons (make_int (DEVICE_MSWINDOWS_HORZSIZE(d)), 192 return Fcons (make_int (DEVICE_MSWINDOWS_HORZSIZE(d)),
192 make_int (DEVICE_MSWINDOWS_VERTSIZE(d))); 193 make_int (DEVICE_MSWINDOWS_VERTSIZE(d)));
193 break; 194 break;
194 case DM_num_bit_planes: 195 case DM_num_bit_planes:
195 return make_int (DEVICE_MSWINDOWS_PLANES(d)); 196 /* this is what X means by bitplanes therefore we ought to be
197 consistent. num planes is always 1 under mswindows and
198 therefore useless */
199 return make_int (DEVICE_MSWINDOWS_BITSPIXEL(d));
196 break; 200 break;
197 case DM_num_color_cells: 201 case DM_num_color_cells:
198 return make_int (DEVICE_MSWINDOWS_CELLS(d)); 202 return make_int (DEVICE_MSWINDOWS_CELLS(d));
199 break; 203 break;
200 204