Pārlūkot izejas kodu

* Added error detection to truecolor test

tags/v0.99.beta14
Jean-Yves Lamoureux jylam pirms 18 gadiem
vecāks
revīzija
389cfcdf70
1 mainītis faili ar 11 papildinājumiem un 0 dzēšanām
  1. +11
    -0
      test/truecolor.c

+ 11
- 0
test/truecolor.c Parādīt failu

@@ -33,7 +33,18 @@ int main(int argc, char *argv[])
int x, y;

cv = cucul_create_canvas(32, 16);
if(cv == NULL)
{
printf("Failed to create canvas\n");
return 1;
}

dp = caca_create_display(cv);
if(dp == NULL)
{
printf("Failed to create display\n");
return 1;
}

for(y = 0; y < 16; y++)
for(x = 0; x < 16; x++)


Notiek ielāde…
Atcelt
Saglabāt