Changeset 37119


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

[titan] mipsel.. new animations

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/adjust.h

    r36387 r37119  
    173173        addchoicebox(screenanim, "2", _("anim. height"));
    174174        addchoicebox(screenanim, "3", _("anim. both"));
     175#ifdef MIPSEL
     176        addchoicebox(screenanim, "4", _("left to right"));
     177        addchoicebox(screenanim, "5", _("top to bottom"));
     178#endif
    175179        setchoiceboxselection(screenanim, getconfig("screenanim", NULL));
    176180       
  • titan/titan/mipselport.h

    r37118 r37119  
    257257                        dst_height = 2;
    258258                }
     259                if(status.screenanim == 4)
     260                {
     261                        dst_top = posy;
     262                        dst_height = height;
     263                        dst_left = posx;
     264                        dst_width = 2;
     265                }
     266                if(status.screenanim == 5)
     267                {
     268                        dst_top = posy;
     269                        dst_height = 2;
     270                        dst_left = posx;
     271                        dst_width = width;
     272                }
     273               
    259274                wstep = width / max;
    260275                hstep = height / max;
     
    282297                                        tmpheight = height;
    283298                                dst_top = tmptop;
     299                                dst_height = tmpheight;
     300                        }
     301                        if(status.screenanim == 4)
     302                        {
     303                                int tmpwidth = dst_width + wstep;
     304                                if(tmpwidth > width)
     305                                        tmpwidth = width;
     306                                dst_width = tmpwidth;
     307                        }
     308                        if(status.screenanim == 5)
     309                        {
     310                                int tmpheight = dst_height + hstep;
     311                                if(tmpheight > height)
     312                                        tmpheight = height;
    284313                                dst_height = tmpheight;
    285314                        }
Note: See TracChangeset for help on using the changeset viewer.