Changeset 38558 for titan/titan/skin.h
- Timestamp:
- 09/04/16 15:35:11 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/skin.h
r38555 r38558 361 361 { 362 362 int ret = -1; 363 char *buf = NULL; 363 char *buf = NULL, *tmpstr = NULL; 364 tmpstr = ostrcat(value, NULL, 0, 0); 364 365 365 366 if(strcasecmp(value, "left") == 0) … … 431 432 else if(strcasecmp(value, "minitvsize") == 0) 432 433 { 434 free(tmpstr), tmpstr = NULL; 433 435 if(getskinconfigint("minitv", NULL) == 1) 434 value= ostrcat("100%", NULL, 0, 0);436 tmpstr = ostrcat("100%", NULL, 0, 0); 435 437 else 436 value = getskinconfig(value, NULL); 438 tmpstr = getskinconfig(value, NULL); 439 printf("11111111=%s tmpstr=%s ret=%d\n", value, tmpstr, ret); 440 437 441 } 438 442 439 443 if(proz != NULL && ret == -1) 440 444 { 441 buf = strchr(value, '%'); 445 buf = strchr(tmpstr, '%'); 446 442 447 if(buf != NULL) 443 448 { 444 449 buf[0] = '\0'; 445 ret = atoi( value);450 ret = atoi(tmpstr); 446 451 *proz = 1; 447 452 buf[0] = '%'; 448 453 } 449 454 else 450 ret = atoi(value); 451 } 455 ret = atoi(tmpstr); 456 } 457 // free(tmpstr), tmpstr = NULL; 452 458 453 459 return ret;
Note: See TracChangeset
for help on using the changeset viewer.