perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / x11 / xf86-video-ast / patches / 01.16027951.patch
blob54efa260b512402d42a76a91ef1048dc17e7065d
1 --- xf86-video-ast-1.0.1/src/ast_driver.c.~1~ 2014-08-08 12:59:04.000000000 +0400
2 +++ xf86-video-ast-1.0.1/src/ast_driver.c 2015-02-13 12:44:40.089232180 +0300
3 @@ -1,5 +1,6 @@
4 /*
5 * Copyright (c) 2005 ASPEED Technology Inc.
6 + * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
8 * Permission to use, copy, modify, distribute, and sell this software and its
9 * documentation for any purpose is hereby granted without fee, provided that
10 @@ -1537,6 +1538,12 @@
11 else
12 Flags = ASTGetVGAEDID(pScrn, DDC_data);
14 + /*
15 + * Buffer is of size 128, can't read extension blocks even the monitor
16 + * provides. 126 is NO_EDID defined in edid.h
17 + */
18 + DDC_data[126] = 0;
20 if (Flags)
22 ConfiguredMonitor = xf86InterpretEDID(pScrn->scrnIndex, DDC_data);
23 @@ -1589,6 +1596,12 @@
24 else
25 Flags = ASTGetVGAEDID(pScrn, DDC_data);
27 + /*
28 + * Buffer is of size 128, can't read extension blocks even the monitor
29 + * provides. 126 is NO_EDID defined in edid.h
30 + */
31 + DDC_data[126] = 0;
33 if (Flags)
35 MonInfo = MonInfo1 = xf86InterpretEDID(pScrn->scrnIndex, DDC_data);