Changeset 15666


Ignore:
Timestamp:
05/11/12 01:25:08 (11 years ago)
Author:
nit
Message:

[titan] fix round

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skin.h

    r15663 r15666  
    15701570                                        {
    15711571                                                tmp = (float)py / tmp;
    1572                                                 blitscale(posx, nposy, width, py, scalewidth, (int)tmp, 0);
     1572                                                blitscale(posx, nposy, width, py, scalewidth, (int)(tmp + 0.5), 0);
    15731573                                                nposy += tmp;
    15741574                                        }
     
    15841584                        {
    15851585                                tmp = (float)py / tmp;
    1586                                 blitscale(posx, nposy, width, py, scalewidth, (int)tmp, 0);
     1586                                blitscale(posx, nposy, width, py, scalewidth, (int)(tmp + 0.5), 0);
    15871587                        }
    15881588                }
Note: See TracChangeset for help on using the changeset viewer.