Ignore:
Timestamp:
May 31, 2006, 4:33:48 PM (15 years ago)
Author:
Sam Hocevar
Message:
  • Fixed matrix.c for non-Thinkpad computers.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/matrix.c

    r993 r995  
    7070            FILE *f = fopen("/sys/devices/platform/hdaps/position", "r");
    7171
    72             if(!f)
     72            if(f)
    7373            {
     74                fscanf(f, "(%d,%d)", &sensorx, &sensory);
     75                fclose(f);
     76            }
     77            else
    7478                have_hdaps = 0;
    75                 break;
    76             }
    77 
    78             fscanf(f, "(%d,%d)", &sensorx, &sensory);
    79             fclose(f);
    8079        }
    8180
Note: See TracChangeset for help on using the changeset viewer.