Ignore:
Timestamp:
Jan 31, 2011, 11:00:24 AM (10 years ago)
Author:
sam
Message:

Fix a texture size bug in the font initialisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/font.cpp

    r280 r318  
    7171    data->width = data->img->w / 16;
    7272    data->height = data->img->h / 16;
    73     data->tx = 7.0f / PotUp(data->img->w);
    74     data->ty = 15.0f / PotUp(data->img->h);
     73    data->tx = (float)data->width / PotUp(data->img->w);
     74    data->ty = (float)data->height / PotUp(data->img->h);
    7575
    7676    drawgroup = DRAWGROUP_BEFORE;
Note: See TracChangeset for help on using the changeset viewer.