Changeset 32773


Ignore:
Timestamp:
01/29/15 17:26:26 (9 years ago)
Author:
Stephan
Message:

fix aspect for sh4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skinfunc.h

    r32770 r32773  
    326326
    327327        tmpstr = getaspect();
    328         if(ostrcmp(tmpstr, "4:3") == 1)
     328
     329#ifdef MIPSEL   
     330    if(ostrcmp(tmpstr, "4:3") == 1)
    329331        {
    330332                free(tmpstr); tmpstr = NULL;
    331333                tmpstr = ostrcat(tmpstr, "4_3.png", 1, 0);
    332334        }
    333         if(ostrcmp(tmpstr, "16:9") == 3 || 11)
     335        if(ostrcmp(tmpstr, "16:9") == 3 || ostrcmp(tmpstr, "16:9") == 11)
    334336        {
    335337                free(tmpstr); tmpstr = NULL;
    336338                tmpstr = ostrcat(tmpstr, "16_9.png", 1, 0);
    337339        }
    338 
     340#else
     341    if(ostrcmp(tmpstr, "4:3") == 0)
     342        {
     343                free(tmpstr); tmpstr = NULL;
     344                tmpstr = ostrcat(tmpstr, "4_3.png", 1, 0);
     345        }
     346        if(ostrcmp(tmpstr, "16:9") == 1)
     347        {
     348                free(tmpstr); tmpstr = NULL;
     349                tmpstr = ostrcat(tmpstr, "16_9.png", 1, 0);
     350        }
    339351        if(path != NULL)
    340352                tmpstr = ostrcat("/", tmpstr, 0, 1);
    341353        tmpstr = ostrcat(path, tmpstr, 0, 1);
    342 
     354#endif
    343355        return tmpstr;
    344356}
     
    418430        videoreadqwidth(status.aktservice->videodev);
    419431
     432#ifdef MIPSEL
    420433//      if(getaktvideosize() == 0) //videosize is ok
    421434//      {
    422435                if(status.videosize.aspect_ratio == 1)
    423436                        tmpstr = ostrcat("4_3.png", NULL, 0, 0);
    424                 else if(status.videosize.aspect_ratio == 3 || 11)
     437                else if(status.videosize.aspect_ratio == 3 || status.videosize.aspect_ratio == 11)
    425438                        tmpstr = ostrcat("16_9.png", NULL, 0, 0);
    426439//      }
     440
     441#else
     442//      if(getaktvideosize() == 0) //videosize is ok
     443//      {
     444                if(status.videosize.aspect_ratio == 0)
     445                        tmpstr = ostrcat("4_3.png", NULL, 0, 0);
     446                else if(status.videosize.aspect_ratio == 1)
     447                        tmpstr = ostrcat("16_9.png", NULL, 0, 0);
     448//      }
     449#endif
    427450       
    428451        if(tmpstr == NULL) tmpstr = ostrcat("novideoasp.png", NULL, 0, 0);
Note: See TracChangeset for help on using the changeset viewer.