diff 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
line wrap: on
line diff
--- a/src/device-msw.c	Mon Aug 13 10:35:07 2007 +0200
+++ b/src/device-msw.c	Mon Aug 13 10:35:54 2007 +0200
@@ -105,6 +105,7 @@
      take over */
   wc.hbrBackground = (HBRUSH)(COLOR_APPWORKSPACE + 1);
   wc.lpszMenuName = NULL;
+
   wc.lpszClassName = XEMACS_CLASS;
   wc.hIconSm = LoadImage (GetModuleHandle (NULL), XEMACS_CLASS,
 			  IMAGE_ICON, 16, 16, 0);
@@ -192,7 +193,10 @@
 		    make_int (DEVICE_MSWINDOWS_VERTSIZE(d)));
       break;
     case DM_num_bit_planes:
-      return make_int (DEVICE_MSWINDOWS_PLANES(d));
+      /* this is what X means by bitplanes therefore we ought to be
+         consistent. num planes is always 1 under mswindows and
+         therefore useless */
+      return make_int (DEVICE_MSWINDOWS_BITSPIXEL(d));
       break;
     case DM_num_color_cells:
       return make_int (DEVICE_MSWINDOWS_CELLS(d));