Changeset 37142


Ignore:
Timestamp:
02/14/16 18:49:09 (7 years ago)
Author:
gost
Message:

[titan] mipsel fix animation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/mipselport.h

    r37129 r37142  
    205205        if(status.bcm == 1 && status.usedirectfb == 0)
    206206        {
     207                posx = getconfigint("fbleftoffset", NULL) * 5;
     208                posy = getconfigint("fbtopoffset", NULL) * 5;
    207209                width = (fb->width - posx) - (getconfigint("fbrightoffset", NULL) * 5);
    208210                height = (fb->height - posy) - (getconfigint("fbbottomoffset", NULL) * 5);
    209                 posx = getconfigint("fbleftoffset", NULL) * 5;
    210                 posy = getconfigint("fbtopoffset", NULL) * 5;
    211211        }
    212212        else
    213213        {
     214                posx = getconfigint("fbleftoffset", NULL);
     215                posy = getconfigint("fbtopoffset", NULL);
    214216                width = (720 - posx) - (getconfigint("fbrightoffset", NULL));
    215217                height = (576 - posy) - (getconfigint("fbbottomoffset", NULL));
    216                 posx = getconfigint("fbleftoffset", NULL);
    217                 posy = getconfigint("fbtopoffset", NULL);
    218         }
    219        
     218        }
    220219        //printf("posx:%i posy:%i width:%i height:%i\n", posx, posy, width, height);
    221220
    222         int i = 0, max = 1, wstep = 0, hstep = 0;
    223         int dst_left = 0, dst_width = 0, dst_top = 0, dst_height = 0;
    224         int mode3d = 0;
    225 
    226         if(flag == 0 || checkbox("ATEMIO5200") == 1)
     221        if(flag == 0 || checkbox("ATEMIO5200") == 1 || status.screenanim == 0)
    227222        {
    228223                if(status.bcm == 1 && status.usedirectfb == 0)
     
    232227        }
    233228       
     229
     230        int i = 0, max = 1, wstep = 0, hstep = 0;
     231        int dst_left = 0, dst_width = 0, dst_top = 0, dst_height = 0;
     232        int mode3d = 0;
     233
    234234        if(flag == 1 && status.screenanim > 0 && mode3d == 0)
    235235        {
     
    271271                        dst_height = 2;
    272272                }
    273                 if(status.screenanim == 4)
     273                if(status.screenanim == 4 || status.screenanim == 11)
    274274                {
    275275                        dst_top = posy;
     
    278278                        dst_width = 2;
    279279                }
    280                 if(status.screenanim == 5)
     280                if(status.screenanim == 5 || status.screenanim == 12)
    281281                {
    282282                        dst_top = posy;
     
    372372        }
    373373        else
    374                 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, posx, posy, width, height, 0, 0);
    375        
     374        {
     375                if(status.bcm == 1 && status.usedirectfb == 0)
     376                        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, posx, posy, width, height, 0, 0);
     377        }
    376378        if(doblit == 1)
    377379                blit();
Note: See TracChangeset for help on using the changeset viewer.