Skip to content
Permalink
Browse files

Fix for big endian x11 issues

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@1031 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
landonf committed Oct 11, 2002
1 parent e39f856 commit b98b2afe19f0289a7077c6812d5fef9df3f4d351
Showing with 41 additions and 0 deletions.
  1. +41 −0 www/links/files/patch-x.c
@@ -0,0 +1,41 @@
--- x.c.orig Thu Sep 5 01:24:30 2002
+++ x.c
@@ -959,6 +959,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)
{
@@ -974,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;
@@ -1010,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); */

0 comments on commit b98b2af

Please sign in to comment.
You can’t perform that action at this time.