Parcourir la source

* Fixed matrix.c for non-Thinkpad computers.

tags/v0.99.beta14
Sam Hocevar sam il y a 19 ans
Parent
révision
004a78bc77
1 fichiers modifiés avec 5 ajouts et 6 suppressions
  1. +5
    -6
      test/matrix.c

+ 5
- 6
test/matrix.c Voir le fichier

@@ -69,14 +69,13 @@ int main(void)
{
FILE *f = fopen("/sys/devices/platform/hdaps/position", "r");

if(!f)
if(f)
{
have_hdaps = 0;
break;
fscanf(f, "(%d,%d)", &sensorx, &sensory);
fclose(f);
}

fscanf(f, "(%d,%d)", &sensorx, &sensory);
fclose(f);
else
have_hdaps = 0;
}

w = cucul_get_canvas_width(cv);


Chargement…
Annuler
Enregistrer