Changeset 31629
- Timestamp:
- 12/09/14 01:01:32 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/plugins/browser/browser.h
r31600 r31629 210 210 if(mbox->param != NULL) 211 211 { 212 addmenulist(&mlist1, "16", _("16 Bit"), NULL, 0, 0); 213 addmenulist(&mlist1, "32", _("32 Bit"), NULL, 0, 0); 212 addmenulist(&mlist1, "32 Bit Scale 100 Percent", _("32 Bit Scale 100 Percent"), NULL, 0, 0); 213 addmenulist(&mlist1, "32 Bit Scale 200 Percent", _("32 Bit Scale 200 Percent"), NULL, 0, 0); 214 addmenulist(&mlist1, "16 Bit Scale 100 Percent", _("16 Bit Scale 100 Percent"), NULL, 0, 0); 215 addmenulist(&mlist1, "16 Bit Scale 200 Percent", _("16 Bit Scale 200 Percent"), NULL, 0, 0); 216 214 217 mbox1 = menulistbox(mlist1, "menulist", _("Browser Resolution"), _("Choose your Resolution"), NULL, NULL, 0, 0); 215 218 printf("mbox1->name %s", mbox1->name); … … 217 220 drawscreen(skin, 0, 0); 218 221 status.sec = 0; //deaktivate spinner 219 tmpstr = ostrcat("nsfb.sh -f linux -b ", mbox1->name, 0, 0); 220 tmpstr = ostrcat(tmpstr, " ", 1, 0); 221 tmpstr = ostrcat(tmpstr, mbox->param, 1, 0); 222 printf("cmd: %s\n", tmpstr); 223 // tmpstr = ostrcat("nsfb.sh -f linux ", mbox->param, 0, 0); 222 if(ostrcmp(mbox1->name, "32 Bit Scale 100 Percent") == 0) 223 tmpstr = ostrcat("nsfb.sh -f --scale=100 linux -b 32 ", mbox->param, 0, 0); 224 else if(ostrcmp(mbox1->name, "32 Bit Scale 200 Percent") == 0) 225 tmpstr = ostrcat("nsfb.sh -f --scale=200 linux -b 32 ", mbox->param, 0, 0); 226 else if(ostrcmp(mbox1->name, "16 Bit Scale 100 Percent") == 0) 227 tmpstr = ostrcat("nsfb.sh -f --scale=100 linux -b 16 ", mbox->param, 0, 0); 228 else if(ostrcmp(mbox1->name, "16 Bit Scale 200 Percent") == 0) 229 tmpstr = ostrcat("nsfb.sh -f --scale=200 linux -b 16 ", mbox->param, 0, 0); 230 231 // tmpstr = ostrcat("nsfb.sh -f linux -b ", mbox1->name, 0, 0); 232 // tmpstr = ostrcat(tmpstr, " ", 1, 0); 233 // tmpstr = ostrcat(tmpstr, mbox->param, 1, 0); 234 235 printf("cmd: %s\n", tmpstr); 224 236 system(tmpstr); 225 237 free(tmpstr); tmpstr = NULL; … … 239 251 } 240 252 253 /* 254 void screenbrowseradjust() 255 { 256 int rcret = 0; 257 char* tmpstr = NULL; 258 struct skin* browseradjust = getscreen("browseradjust"); 259 struct skin* listbox = getscreennode(browseradjust, "listbox"); 260 struct skin* scale = getscreennode(browseradjust, "scale"); 261 262 changeinput(scale, "100\n90\n80\n70\n60\n50\n110\n120\n130\n140\n150\n160\n170\n180\n190\n200"); 263 tmpstr = readfiletomem("/mnt/config/choices", 0); 264 265 readscale = string_resub("scale:", "\n", tmpstr, 0); 266 printf(scale: %s\n", readscale); 267 setchoiceboxselection(scale, readscale); 268 269 drawscreen(browseradjust, 0, 0); 270 addscreenrc(browseradjust, listbox); 271 272 tmp = listbox->select; 273 while(1) 274 { 275 addscreenrc(browseradjust, tmp); 276 rcret = waitrc(browseradjust, 0, 0); 277 tmp = listbox->select; 278 279 if(rcret == getrcconfigint("rcexit", NULL)) break; 280 if(rcret == getrcconfigint("rcok", NULL)) 281 { 282 addconfigscreencheck("scale", readscale, "0"); 283 char* cmd = NULL; 284 cmd = ostrcat('sed "s/scale:.*/scale:', readscal, 0, 0) 285 cmd = ostrcat(cmd, '/" -i /mnt/config/choices' , 1, 0) 286 printf("cmd: %s\n", cmd); 287 system(cmd); 288 break; 289 } 290 } 291 } 292 */ 293 241 294 #endif
Note: See TracChangeset
for help on using the changeset viewer.