Changeset 1777


Ignore:
Timestamp:
Jun 28, 2007, 9:42:36 AM (13 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Minor cosmetic changes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacademo.c

    r1766 r1777  
    865865    static int *yTable;
    866866
    867 
    868 
    869867    /* register is quite a bad idea on CISC, but not on RISC */
    870868    register unsigned int x, y;
     
    875873    {
    876874    case INIT:
    877 
    878875        screen = (unsigned int*)malloc(4 * XSIZ * YSIZ
    879876                                       * sizeof(unsigned char));
     
    899896            yTable[x] = x*TEXTURE_SIZE;
    900897        }
    901 
    902         break;
     898        break;
     899
    903900    case PREPARE:
    904901        break;
     902
    905903    case UPDATE:
    906 
    907904        alphaF +=   4;
    908905        tF     +=   3;
    909         scaleF =    (FMUL(sinTable[tF&0xFFFF], TOFIX(3)) + (TOFIX(5)));
     906        scaleF =    FMUL(sinTable[tF&0xFFFF], TOFIX(3)) + TOFIX(4);
    910907        xxF    =    FMUL(cosTable[(alphaF)&0xFFFF], scaleF);
    911908        yyF    =    FMUL(sinTable[(alphaF)&0xFFFF], scaleF);
     
    934931            vF = vF_ += xxF;
    935932        }
    936 
    937933        break;
    938934    case RENDER:
     
    942938                            dither, save);
    943939        break;
     940
    944941    case FREE:
    945942        free(cosTable);
Note: See TracChangeset for help on using the changeset viewer.