Changeset 20751


Ignore:
Timestamp:
03/27/13 23:21:41 (11 years ago)
Author:
nit
Message:

[titan] fix autores

Location:
titan/titan
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/avsettings.h

    r20745 r20751  
    6464        addchoicebox(autoresolution, "off", _("off"));
    6565        addchoicebox(autoresolution, "auto", _("auto"));
    66         addchoicebox(autoresolution, "blue", _("blueKey"));
     66        addchoicebox(autoresolution, "key", _("redKey"));
    6767        setchoiceboxselection(autoresolution, getconfig("av_videomode_autores", NULL));
    6868
     
    193193                        if(ostrcmp(autoresolution->ret, "off") != 0)
    194194                        {
    195                                 if(ostrcmp(autoresolution->ret, "blue") == 0)
     195                                if(ostrcmp(autoresolution->ret, "key") == 0)
    196196                                        autoressd->hidden=NO;
    197197                                else if(ostrcmp(autoresolution->ret, "auto") == 0)
     
    214214                                {
    215215                                        setvideomode(resolution->ret, 0);
    216                                         changefbresolution(resolution->ret);
     216                                        changefbresolution(resolution->ret, 0);
    217217                                        if(flag == 0)
    218218                                        {
     
    221221                                                {
    222222                                                        setvideomode(ret, 0);
    223                                                         changefbresolution(ret);
     223                                                        changefbresolution(ret, 0);
    224224                                                }
    225225                                                else
  • titan/titan/dvdplayer.h

    r18429 r20751  
    192192        {
    193193                setvideomode(tv_videomode, 0);
    194                 changefbresolution(tv_videomode);
     194                changefbresolution(tv_videomode, 0);
    195195                free(tv_videomode); tv_videomode = NULL;
    196196        }
     
    268268        {
    269269                setvideomode("720p50", 0);
    270                 changefbresolution("720p50");
     270                changefbresolution("720p50", 0);
    271271        }
    272272        else
  • titan/titan/fb.h

    r16924 r20751  
    283283}
    284284
    285 void changefbresolution(char *value)
     285//flag 0: del skinfb
     286//flag 1: don't del skinfb
     287void changefbresolution(char *value, int flag)
    286288{
    287289        if(ostrcmp("pal", value) == 0)
     
    319321        }
    320322        clearfb(fb);
    321         clearfb(skinfb);
     323        if(flag == 0) clearfb(skinfb);
    322324}
    323325
  • titan/titan/global.h

    r20749 r20751  
    20372037        {
    20382038                setvideomode("720p50", 0);
    2039                 changefbresolution("720p50");
     2039                changefbresolution("720p50", 0);
    20402040                setcolorformat("hdmi_rgb");
    20412041        }
     
    20432043        {
    20442044                setvideomode("576i50", 0);
    2045                 changefbresolution("576i50");
     2045                changefbresolution("576i50", 0);
    20462046                setcolorformat("rgb");
    20472047        }
     
    45394539        }
    45404540
     4541        value = string_replace("pal", "", value, 1);
     4542        value = string_replace("  ", " ", value, 1);
     4543
    45414544        if(status.mcaktiv == 0)
    45424545        {
     
    46714674                {
    46724675                        setvideomode("720p50", 0);
    4673                         changefbresolution("720p50");
     4676                        changefbresolution("720p50", 0);
    46744677                        changetext(playpolicy, "720p50");
    46754678                        writevfd("720p50");
     
    46794682                {
    46804683                        setvideomode("1080i50", 0);
    4681                         changefbresolution("1080i50");
     4684                        changefbresolution("1080i50", 0);
    46824685                        changetext(playpolicy, "1080i50");
    46834686                        writevfd("1080i50");
     
    46874690                {
    46884691                        setvideomode("576i50", 0);
    4689                         changefbresolution("576i50");
     4692                        changefbresolution("576i50", 0);
    46904693                        changetext(playpolicy, "576i50");
    46914694                        writevfd("576i50 / pal");
     
    46974700                {
    46984701                        setvideomode(tmpstr, 0);
    4699                         changefbresolution(tmpstr);
     4702                        changefbresolution(tmpstr, 0);
    47004703                }
    47014704                */
     
    59565959                                if(status.restimer->aktion != START) goto end;
    59575960                                setvideomode(res, 1);
    5958                                 changefbresolution(res);
     5961                                changefbresolution(res, 1);
     5962/*
    59595963                                if(status.restimer->aktion != START) goto end;
    59605964
     
    59695973
    59705974                                if(status.restimer->aktion != START) goto end;
     5975*/
    59715976                                screenautores(res, 5, 0);
    59725977                        }
  • titan/titan/header.h

    r20730 r20751  
    408408//fb.h
    409409void blitfb(int flag);
    410 void changefbresolution(char *value);
     410void changefbresolution(char *value, int flag);
    411411void setfbtransparent(int value);
    412412struct fb* addfb(char *fbname, int dev, int width, int height, int colbytes, int fd, unsigned char* mmapfb, unsigned long fixfbsize);
  • titan/titan/keyactions.h

    r19855 r20751  
    3939       
    4040                //addmenulist(&mlist, "Extensions List", NULL, NULL, 0, 0);
    41                 addmenulist(&mlist, "Resolution .. (default <-> actual)", NULL, "resolution.png", 0, 0);
     41                addmenulist(&mlist, "Auto Resolution", NULL, "resolution.png", 0, 0);
    4242                if(checkemu() == 1)
    4343                        addmenulist(&mlist, "Softcam Panel", NULL, NULL, 0, 0);
     
    181181                                         res_def = res_act;
    182182                                setvideomode(res_def, 1);
    183                                 changefbresolution(res_def);
    184                                 sleep(2);
    185                                 screenautores(res_def, 5, 0);                   
     183                                changefbresolution(res_def, 0);
     184                                screenautores(res_def, 5, 0);
    186185                        }
    187186                        else
    188187                        {
    189188                                setvideomode(res, 1);
    190                                 changefbresolution(res);
    191                                 sleep(2);
     189                                changefbresolution(res, 0);
    192190                                screenautores(res, 5, 0);
    193191                        }
Note: See TracChangeset for help on using the changeset viewer.