src/video/x11/edid-parse.c
changeset 6992 e7c2c85bcf69
parent 6853 4f26c9dfe50f
child 7072 1d9b4b7a8ce3
equal deleted inserted replaced
6991:ff49588e3ddb 6992:e7c2c85bcf69
   331 	int second = edid[0x27 + 2 * i];
   331 	int second = edid[0x27 + 2 * i];
   332 
   332 
   333 	if (first != 0x01 && second != 0x01)
   333 	if (first != 0x01 && second != 0x01)
   334 	{
   334 	{
   335 	    int w = 8 * (first + 31);
   335 	    int w = 8 * (first + 31);
   336 	    int h;
   336 	    int h = 0;
   337 
   337 
   338 	    switch (get_bits (second, 6, 7))
   338 	    switch (get_bits (second, 6, 7))
   339 	    {
   339 	    {
   340 	    case 0x00: h = (w / 16) * 10; break;
   340 	    case 0x00: h = (w / 16) * 10; break;
   341 	    case 0x01: h = (w / 4) * 3; break;
   341 	    case 0x01: h = (w / 4) * 3; break;