Changeset 14082


Ignore:
Timestamp:
02/12/12 21:06:25 (12 years ago)
Author:
nit
Message:

[titan] first step anim screens

Location:
titan
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/keylock/keylock.c

    r13806 r14082  
    4141       
    4242        restorescreen(bg, keylock);
    43         blitfb();
     43        blitfb(0);
    4444}
    4545                       
  • titan/plugins/permtime/permtime.c

    r13809 r14082  
    3232        }
    3333        restorescreen(bg, permtime);
    34         blitfb();
     34        blitfb(0);
    3535        permtimethread = NULL;
    3636  return;
  • titan/titan/autores.h

    r13961 r14082  
    4343                clearscreennolock(autores);
    4444                restorescreen(bg, autores);
    45                 blitfb();
     45                blitfb(0);
    4646                status.screencalc = tmpscreencalc;
    4747                sleep(1);
  • titan/titan/download.h

    r13961 r14082  
    116116                clearscreennolock(download);
    117117                restorescreen(bg, download);
    118                 blitfb();
     118                blitfb(0);
    119119                status.screencalc = tmpscreencalc;
    120120                sleep(1);
  • titan/titan/fb.h

    r13190 r14082  
    265265}
    266266
    267 void blitfb()
    268 {
     267//flag > 0 = animation
     268void blitfb(int flag)
     269{
     270        int i = 0, max = 1, step = 0;
     271
    269272        if(skinfb == NULL) return;
    270273#ifndef NOHWBLIT
     
    305308                bltData.dst_right = (fb->width - rightoffset) / 2;
    306309        else
    307                 bltData.dst_right  = fb->width - rightoffset;
     310                bltData.dst_right = fb->width - rightoffset;
    308311        if(mode3d == 2)
    309312                bltData.dst_bottom = (fb->height - bottomoffset) / 2;
     
    313316        bltData.dstMemBase = STMFBGP_FRAMEBUFFER;
    314317
    315         if (ioctl(fb->fd, STMFBIO_BLT, &bltData) < 0)
    316         {
    317                 perr("ioctl STMFBIO_BLT");
    318         }
    319         if(ioctl(fb->fd, STMFBIO_SYNC_BLITTER) < 0)
    320         {
    321                 perr("ioctl STMFBIO_SYNC_BLITTER");
    322         }
    323 
    324         if(mode3d != 0)
    325         {
    326                 if(mode3d == 1)
    327                         bltData.dst_left   = 0 + leftoffset + ((fb->width - rightoffset) / 2);
    328                 if(mode3d == 2)
    329                         bltData.dst_top    = 0 + topoffset + ((fb->height - bottomoffset) / 2);
    330                 bltData.dst_right  = fb->width - rightoffset;
    331                 bltData.dst_bottom = fb->height - bottomoffset;
     318        if(flag > 0 && mode3d == 0)
     319        {
     320                int width = (fb->width - rightoffset) - (0 + leftoffset);
     321                max = 50;
     322                bltData.dst_left = (width / 2) - 1;
     323                bltData.dst_right = (width / 2) + 1;
     324                step = width / 50;
     325        }
     326
     327        for(i = 0; i < max; i++)
     328        {
     329
     330                if(flag == 1)
     331                {
     332                        int tmpleft = bltData.dst_left - step;
     333                        int tmpright = bltData.dst_right + step;
     334                        if(tmpleft < 0)
     335                                tmpleft = 0;
     336                        if(tmpright > fb->width - rightoffset)
     337                                tmpright = fb->width - rightoffset;
     338                        bltData.dst_left = tmpleft;
     339                        bltData.dst_right = tmpright;
     340                        usleep(1000);
     341                }
    332342
    333343                if (ioctl(fb->fd, STMFBIO_BLT, &bltData) < 0)
     
    338348                {
    339349                        perr("ioctl STMFBIO_SYNC_BLITTER");
     350                }
     351
     352                if(mode3d != 0)
     353                {
     354                        if(mode3d == 1)
     355                                bltData.dst_left = 0 + leftoffset + ((fb->width - rightoffset) / 2);
     356                        if(mode3d == 2)
     357                                bltData.dst_top = 0 + topoffset + ((fb->height - bottomoffset) / 2);
     358                        bltData.dst_right  = fb->width - rightoffset;
     359                        bltData.dst_bottom = fb->height - bottomoffset;
     360
     361                        if (ioctl(fb->fd, STMFBIO_BLT, &bltData) < 0)
     362                        {
     363                                perr("ioctl STMFBIO_BLT");
     364                        }
     365                        if(ioctl(fb->fd, STMFBIO_SYNC_BLITTER) < 0)
     366                        {
     367                                perr("ioctl STMFBIO_SYNC_BLITTER");
     368                        }
    340369                }
    341370        }
     
    415444{
    416445        FILE *fd;
    417   fd=fopen("/tmp/titanlcd.raw", "w");
     446        fd=fopen("/tmp/titanlcd.raw", "w");
    418447        int help = 0;
    419448        int i = 0;
  • titan/titan/header.h

    r13956 r14082  
    172172
    173173//fb.h
    174 void blitfb();
     174void blitfb(int flag);
    175175void changefbresolution(char *value);
    176176void setfbtransparent(int value);
  • titan/titan/menulist.h

    r13961 r14082  
    230230                clearscreennolock(screen);
    231231                restorescreen(bg, screen);
    232                 blitfb();
     232                blitfb(0);
    233233                status.screencalc = tmpscreencalc;
    234234                sleep(1);
  • titan/titan/mute.h

    r13492 r14082  
    5555                status.drawallways[0] = NULL;
    5656                if(flag == 0 || flag == 2)
    57                         blitfb();
     57                        blitfb(0);
    5858        }
    5959}
  • titan/titan/numinput.h

    r13961 r14082  
    6464                clearscreennolock(numinput);
    6565                restorescreen(bg, numinput);
    66                 blitfb();
     66                blitfb(0);
    6767                status.screencalc = tmpscreencalc;
    6868                sleep(1);
  • titan/titan/play.h

    r14038 r14082  
    110110                else if(mode == 2)
    111111                        playerchangesubtitletrackts();
    112                 blitfb();
     112                blitfb(0);
    113113                return;
    114114        }
     
    200200        delownerrc(track);
    201201        clearscreen(track);
    202         blitfb();
     202        blitfb(0);
    203203}
    204204
  • titan/titan/skin.h

    r14037 r14082  
    35613561
    35623562        drawscreenalways(node);
    3563         blitfb();
     3563        blitfb(0);
    35643564        m_unlock(&status.drawingmutex, 0);
    35653565
     
    35793579
    35803580        drawscreenalways(node);
    3581         blitfb();
     3581        blitfb(0);
    35823582        m_unlock(&status.drawingmutex, 0);
    35833583
     
    36603660                                pngforlcd();
    36613661                        else   
    3662                                 blitfb();
     3662                                blitfb(0);
    36633663                }
    36643664        }
  • titan/titan/spinner.h

    r12501 r14082  
    8080        //restore bg
    8181        restorescreen(bg, spinner);
    82         blitfb();
     82        blitfb(0);
    8383        status.screencalc = tmpscreencalc;
    8484        m_unlock(&status.drawingmutex, 0);
  • titan/titan/standby.h

    r13802 r14082  
    4343        subtitlepause(1);
    4444//      clearfb(skinfb);
    45 //      blitfb();
     45//      blitfb(0);
    4646        setfbtransparent(0);
    4747        setvfdbrightness(getconfigint("vfdstandbybrightness", NULL));
  • titan/titan/subtitle.h

    r13639 r14082  
    9898                }
    9999       
    100                 if(stat == 1) blitfb();
     100                if(stat == 1) blitfb(0);
    101101                subfree(0);
    102102        }
     
    209209                pageregnode = pageregnode->next;
    210210        }
    211         if(stat == 1) blitfb();
     211        if(stat == 1) blitfb(0);
    212212}
    213213
  • titan/titan/textbox.h

    r13961 r14082  
    9696                clearscreennolock(messagebox);
    9797                restorescreen(bg, messagebox);
    98                 blitfb();
     98                blitfb(0);
    9999                status.screencalc = tmpscreencalc;
    100100                sleep(1);
  • titan/titan/textinput.h

    r13961 r14082  
    5555                clearscreennolock(textinput);
    5656                restorescreen(bg, textinput);
    57                 blitfb();
     57                blitfb(0);
    5858                status.screencalc = tmpscreencalc;
    5959                sleep(1);
  • titan/titan/timeshift.h

    r14061 r14082  
    198198       
    199199        restorescreen(bg, timeshift);
    200         blitfb();
     200        blitfb(0);
    201201        close(fd);
    202202}
Note: See TracChangeset for help on using the changeset viewer.