Changeset 37129


Ignore:
Timestamp:
02/13/16 18:41:31 (7 years ago)
Author:
gost
Message:

[titan] mipsel.. new animations for dm7020

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/mipselport.h

    r37126 r37129  
    313313                                dst_height = tmpheight;
    314314                        }
    315                         if(status.screenanim == 4)
     315                        if(status.screenanim == 4 || status.screenanim == 11)
    316316                        {
    317317                                int tmpwidth = dst_width + wstep;
     
    320320                                dst_width = tmpwidth;
    321321                        }
    322                         if(status.screenanim == 5)
     322                        if(status.screenanim == 5 || status.screenanim == 12)
    323323                        {
    324324                                int tmpheight = dst_height + hstep;
     
    337337                        //waitvsync();
    338338                        if(status.bcm == 1 && status.usedirectfb == 0)
    339                                 bcm_accel_blit(skinfb->data_phys, skinfb->width, skinfb->height, skinfb->pitch, 0, fb->data_phys, fb->width, fb->height, fb->pitch, 0, 0, skinfb->width, skinfb->height, dst_left, dst_top, dst_width, dst_height, 0, 0);
     339                        {
     340                                if(status.screenanim < 10)
     341                                        bcm_accel_blit(skinfb->data_phys, skinfb->width, skinfb->height, skinfb->pitch, 0, fb->data_phys, fb->width, fb->height, fb->pitch, 0, 0, skinfb->width, skinfb->height, dst_left, dst_top, dst_width, dst_height, 0, 0);
     342                                else
     343                                {
     344                                        int dswidth = dst_width * skinfb->width / width;
     345                                        int dsheight = dst_height * skinfb->height / height;
     346                                        int dsleft = skinfb->width - dswidth;
     347                                        int dstop = skinfb->height - dsheight;
     348                                        bcm_accel_blit(skinfb->data_phys, skinfb->width, skinfb->height, skinfb->pitch, 0, fb->data_phys, fb->width, fb->height, fb->pitch, dsleft, dstop, dswidth, dsheight, dst_left, dst_top, dst_width, dst_height, 0, 0);
     349                                }       
     350                        }       
    340351                        else
    341352                        {
Note: See TracChangeset for help on using the changeset viewer.