[BACK]Return to balls.c CVS log [TXT][DIR] Up to [local] / prex-old / usr / sample / balls

Diff for /prex-old/usr/sample/balls/balls.c between version 1.1.1.1 and 1.1.1.1.2.1

version 1.1.1.1, 2008/06/03 10:38:50 version 1.1.1.1.2.1, 2008/08/13 17:12:42
Line 27 
Line 27 
  * SUCH DAMAGE.   * SUCH DAMAGE.
  */   */
   
   /*
    * ball.c - move many balls within screen.
    */
   
 #include <prex/prex.h>  #include <prex/prex.h>
 #include <sys/ioctl.h>  
   #include <termios.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
   
Line 106 
Line 111 
   
         /* Get screen size */          /* Get screen size */
         device_open("console", 0, &cons);          device_open("console", 0, &cons);
         if (device_ioctl(cons, TIOCGWINSZ, (u_long)&ws) == 0) {          if (device_ioctl(cons, TIOCGWINSZ, &ws) == 0) {
                 rows = ws.ws_row;                  rows = ws.ws_row;
                 cols = ws.ws_col;                  cols = ws.ws_col;
         } else {          } else {

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.1.2.1

CVSweb