blob: 2435495b573fe438336d5e9f68848315eccbffa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
$NetBSD: patch-ab,v 1.2 2002/09/05 01:41:24 dillo Exp $
--- x.c.orig Thu Sep 5 01:24:30 2002
+++ x.c
@@ -967,6 +967,11 @@ bytes_per_pixel_found:
case 15:
case 16:
if (x_bitmap_bpp!=2)break;
+ if (x_bitmap_bit_order==MSBFirst&&vinfo.red_mask>vinfo.green_mask&&vinfo.green_mask>vinfo.blue_mask)
+ {
+ misordered=256;
+ goto visual_found;
+ }
if (x_bitmap_bit_order==MSBFirst)break;
if (vinfo.red_mask>vinfo.green_mask&&vinfo.green_mask>vinfo.blue_mask)
{
@@ -982,14 +987,14 @@ bytes_per_pixel_found:
misordered=256;
goto visual_found;
}
- if (vinfo.red_mask>vinfo.green_mask&&vinfo.green_mask>vinfo.blue_mask)
+ if (x_bitmap_bit_order==MSBFirst&&vinfo.red_mask>vinfo.green_mask&&vinfo.green_mask>vinfo.blue_mask)
{
- misordered=0;
+ misordered=512;
goto visual_found;
}
- if (x_bitmap_bit_order==MSBFirst&&vinfo.red_mask>vinfo.green_mask&&vinfo.green_mask>vinfo.blue_mask)
+ if (vinfo.red_mask>vinfo.green_mask&&vinfo.green_mask>vinfo.blue_mask)
{
- misordered=512;
+ misordered=0;
goto visual_found;
}
break;
@@ -1018,6 +1023,7 @@ visual_found:;
case 451:
case 195:
case 196:
+ case 386:
case 452:
case 708:
/* printf("depth=%d visualid=%x\n",x_driver.depth, vinfo.visualid); */
|