Changeset 14962


Ignore:
Timestamp:
03/29/12 00:40:25 (10 years ago)
Author:
nit
Message:

[titan] add flag to screenvideomode for players

Location:
titan/titan
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/header.h

    r14916 r14962  
    243243
    244244//videomode.h
    245 void screenvideomode();
     245void screenvideomode(int flag);
    246246
    247247//pic.h
  • titan/titan/infobar.h

    r14910 r14962  
    282282                        status.infobar = 0;
    283283                        clearscreen(infobar);
    284                         screenvideomode();
     284                        screenvideomode(0);
    285285                        drawscreen(skin, 0);
    286286                        subtitlepause(0);
  • titan/titan/play.h

    r14959 r14962  
    231231
    232232        screenplayinfobar(file, 1, playertype, flag);
    233         screenvideomode();
     233        if(playertype == 2)
     234                screenvideomode(2);
     235        else
     236                screenvideomode(1);
    234237        drawscreen(skin, 0);
    235238        if(playinfobarstatus > 0)
  • titan/titan/videomode.h

    r12501 r14962  
    22#define VIDEOMODE_H
    33
    4 void screenvideomode()
     4//flag 0: show all
     5//flag 1: no subchannel
     6//flag 2: no subchannel, no resolution change
     7void screenvideomode(int flag)
    58{
    69        char* skinname = "videomode";
    710        char* tmpstr = NULL;
    811        char* tmpstr1 = NULL;
     12        char* mbox = NULL;
    913
    1014        tmpstr = getpolicy();
    1115
    12         tmpstr1 = ostrcat(tmpstr1, "Subchannel\n", 1, 0);
    13         tmpstr1 = ostrcat(tmpstr1, "Resolution Settings\n", 1, 0);
     16        if(flag == 0)   tmpstr1 = ostrcat(tmpstr1, "Subchannel\n", 1, 0);
     17        if(flag == 0 || flag == 1) tmpstr1 = ostrcat(tmpstr1, "Resolution Settings\n", 1, 0);
    1418        tmpstr1 = ostrcat(tmpstr1, "Aspect Settings\n", 1, 0);
    1519        tmpstr1 = ostrcat(tmpstr1, "3D Mode\n", 1, 0); 
     
    1721        tmpstr1 = ostrcat(tmpstr1, getpolicychoices(), 1, 1);
    1822
    19         char* mbox = menulistbox(tmpstr, tmpstr1, skinname, NULL, NULL, 1, 1);
     23        if(flag == 0)
     24                mbox = menulistbox(tmpstr, tmpstr1, skinname, NULL, NULL, 1, 1);
     25        else
     26                mbox = menulistbox(tmpstr, tmpstr1, skinname, NULL, NULL, 1, 0);
    2027
    2128        free(tmpstr); tmpstr = NULL;
Note: See TracChangeset for help on using the changeset viewer.