emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/w32fns.c


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/src/w32fns.c
Date: Fri, 08 Mar 2002 03:33:31 -0500

Index: emacs/src/w32fns.c
diff -c emacs/src/w32fns.c:1.157 emacs/src/w32fns.c:1.158
*** emacs/src/w32fns.c:1.157    Sat Feb 23 13:14:06 2002
--- emacs/src/w32fns.c  Fri Mar  8 03:33:30 2002
***************
*** 7768,7775 ****
    else
      cap = GetDeviceCaps (hdc,NUMCOLORS);
  
    if (cap < 0)
!     cap = 1 << (dpyinfo->n_planes * dpyinfo->n_cbits);
    
    ReleaseDC (dpyinfo->root_window, hdc);
    
--- 7768,7777 ----
    else
      cap = GetDeviceCaps (hdc,NUMCOLORS);
  
+   /* We force 24+ bit depths to 24-bit, both to prevent an overflow
+      and because probably is more meaningful on Windows anyway */
    if (cap < 0)
!     cap = 1 << min(dpyinfo->n_planes * dpyinfo->n_cbits, 24);
    
    ReleaseDC (dpyinfo->root_window, hdc);
    



reply via email to

[Prev in Thread] Current Thread [Next in Thread]