Changeset 20751
- Timestamp:
- 03/27/13 23:21:41 (11 years ago)
- Location:
- titan/titan
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/avsettings.h
r20745 r20751 64 64 addchoicebox(autoresolution, "off", _("off")); 65 65 addchoicebox(autoresolution, "auto", _("auto")); 66 addchoicebox(autoresolution, " blue", _("blueKey"));66 addchoicebox(autoresolution, "key", _("redKey")); 67 67 setchoiceboxselection(autoresolution, getconfig("av_videomode_autores", NULL)); 68 68 … … 193 193 if(ostrcmp(autoresolution->ret, "off") != 0) 194 194 { 195 if(ostrcmp(autoresolution->ret, " blue") == 0)195 if(ostrcmp(autoresolution->ret, "key") == 0) 196 196 autoressd->hidden=NO; 197 197 else if(ostrcmp(autoresolution->ret, "auto") == 0) … … 214 214 { 215 215 setvideomode(resolution->ret, 0); 216 changefbresolution(resolution->ret );216 changefbresolution(resolution->ret, 0); 217 217 if(flag == 0) 218 218 { … … 221 221 { 222 222 setvideomode(ret, 0); 223 changefbresolution(ret );223 changefbresolution(ret, 0); 224 224 } 225 225 else -
titan/titan/dvdplayer.h
r18429 r20751 192 192 { 193 193 setvideomode(tv_videomode, 0); 194 changefbresolution(tv_videomode );194 changefbresolution(tv_videomode, 0); 195 195 free(tv_videomode); tv_videomode = NULL; 196 196 } … … 268 268 { 269 269 setvideomode("720p50", 0); 270 changefbresolution("720p50" );270 changefbresolution("720p50", 0); 271 271 } 272 272 else -
titan/titan/fb.h
r16924 r20751 283 283 } 284 284 285 void changefbresolution(char *value) 285 //flag 0: del skinfb 286 //flag 1: don't del skinfb 287 void changefbresolution(char *value, int flag) 286 288 { 287 289 if(ostrcmp("pal", value) == 0) … … 319 321 } 320 322 clearfb(fb); 321 clearfb(skinfb);323 if(flag == 0) clearfb(skinfb); 322 324 } 323 325 -
titan/titan/global.h
r20749 r20751 2037 2037 { 2038 2038 setvideomode("720p50", 0); 2039 changefbresolution("720p50" );2039 changefbresolution("720p50", 0); 2040 2040 setcolorformat("hdmi_rgb"); 2041 2041 } … … 2043 2043 { 2044 2044 setvideomode("576i50", 0); 2045 changefbresolution("576i50" );2045 changefbresolution("576i50", 0); 2046 2046 setcolorformat("rgb"); 2047 2047 } … … 4539 4539 } 4540 4540 4541 value = string_replace("pal", "", value, 1); 4542 value = string_replace(" ", " ", value, 1); 4543 4541 4544 if(status.mcaktiv == 0) 4542 4545 { … … 4671 4674 { 4672 4675 setvideomode("720p50", 0); 4673 changefbresolution("720p50" );4676 changefbresolution("720p50", 0); 4674 4677 changetext(playpolicy, "720p50"); 4675 4678 writevfd("720p50"); … … 4679 4682 { 4680 4683 setvideomode("1080i50", 0); 4681 changefbresolution("1080i50" );4684 changefbresolution("1080i50", 0); 4682 4685 changetext(playpolicy, "1080i50"); 4683 4686 writevfd("1080i50"); … … 4687 4690 { 4688 4691 setvideomode("576i50", 0); 4689 changefbresolution("576i50" );4692 changefbresolution("576i50", 0); 4690 4693 changetext(playpolicy, "576i50"); 4691 4694 writevfd("576i50 / pal"); … … 4697 4700 { 4698 4701 setvideomode(tmpstr, 0); 4699 changefbresolution(tmpstr );4702 changefbresolution(tmpstr, 0); 4700 4703 } 4701 4704 */ … … 5956 5959 if(status.restimer->aktion != START) goto end; 5957 5960 setvideomode(res, 1); 5958 changefbresolution(res); 5961 changefbresolution(res, 1); 5962 /* 5959 5963 if(status.restimer->aktion != START) goto end; 5960 5964 … … 5969 5973 5970 5974 if(status.restimer->aktion != START) goto end; 5975 */ 5971 5976 screenautores(res, 5, 0); 5972 5977 } -
titan/titan/header.h
r20730 r20751 408 408 //fb.h 409 409 void blitfb(int flag); 410 void changefbresolution(char *value );410 void changefbresolution(char *value, int flag); 411 411 void setfbtransparent(int value); 412 412 struct 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 39 39 40 40 //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); 42 42 if(checkemu() == 1) 43 43 addmenulist(&mlist, "Softcam Panel", NULL, NULL, 0, 0); … … 181 181 res_def = res_act; 182 182 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); 186 185 } 187 186 else 188 187 { 189 188 setvideomode(res, 1); 190 changefbresolution(res); 191 sleep(2); 189 changefbresolution(res, 0); 192 190 screenautores(res, 5, 0); 193 191 }
Note: See TracChangeset
for help on using the changeset viewer.