Changeset 24759
- Timestamp:
- 11/05/13 13:55:13 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/skin.h
r24733 r24759 2874 2874 2875 2875 if(node->progresssize > 100) node->progresssize = 100; 2876 val = (( (node->iwidth * 100) / 100) * node->progresssize) / 100;2876 val = ((float)node->iwidth / 100) * node->progresssize; 2877 2877 fillrect(node->rposx + node->bordersize, node->rposy + node->bordersize, val, node->iheight, node->progresscol, node->transparent); 2878 2878 } … … 2887 2887 2888 2888 if(epgrecord->posx > 100) epgrecord->posx = 100; 2889 val1 = (( (node->iwidth * 100) / 100) * epgrecord->posx) / 100;2889 val1 = ((float)node->iwidth / 100) * epgrecord->posx; 2890 2890 if(epgrecord->size > 100) epgrecord->size = 100; 2891 val2 = (( (node->iwidth * 100) / 100) * epgrecord->size) / 100;2891 val2 = ((float)node->iwidth / 100) * epgrecord->size; 2892 2892 2893 2893 if(val2 > val1) … … 3200 3200 if(node->pagecount > 1) 3201 3201 { 3202 node->scrollbarheight = ( (node->iwidth * 10000) / node->pagecount) / 10000;3203 node->scrollbarpos = (( (node->iheight * 10000) / node->pagecount) / 10000) * (node->aktpage - 1);3202 node->scrollbarheight = (float)node->iheight / node->pagecount; 3203 node->scrollbarpos = ((float)node->iheight / node->pagecount) * (node->aktpage - 1); 3204 3204 if(node->scrollbar == AUTONO) node->scrollbar = AUTOYES; 3205 3205 } … … 3457 3457 3458 3458 if(node->prozwidth == 1) 3459 node->rwidth = (( (parent->iwidth * 100) / 100) * node->width) / 100;3459 node->rwidth = ((float)parent->iwidth / 100) * node->width; 3460 3460 else 3461 3461 node->rwidth = node->width; … … 3471 3471 { 3472 3472 if(node->prozheight == 1) 3473 node->rheight = (( (parent->iheight * 100) / 100) * node->height) / 100;3473 node->rheight = ((float)parent->iheight / 100) * node->height; 3474 3474 else 3475 3475 { … … 3488 3488 { 3489 3489 if(node->prozposx == 1) 3490 node->rposx = (( (parent->iwidth * 100) / 100) * node->posx) / 100;3490 node->rposx = ((float)parent->iwidth / 100) * node->posx; 3491 3491 else 3492 3492 node->rposx = node->posx; … … 3510 3510 { 3511 3511 if(node->prozposy == 1) 3512 node->rposy = (( (parent->iheight * 100) / 100) * node->posy) / 100;3512 node->rposy = ((float)parent->iheight / 100) * node->posy; 3513 3513 else 3514 3514 node->rposy = node->posy; … … 3602 3602 3603 3603 if(node->picprozwidth == 1) 3604 node->rpicwidth = (( (node->iwidth * 100) / 100) * node->picwidth) / 100;3604 node->rpicwidth = ((float)node->iwidth / 100) * node->picwidth; 3605 3605 else 3606 3606 node->rpicwidth = node->picwidth; 3607 3607 if(node->picprozheight == 1) 3608 node->rpicheight = (( (node->iheight * 100) / 100) * node->picheight) / 100;3608 node->rpicheight = ((float)node->iheight / 100) * node->picheight; 3609 3609 else 3610 3610 node->rpicheight = node->picheight;
Note: See TracChangeset
for help on using the changeset viewer.