瀏覽代碼

Fix a texture size bug in the font initialisation.

legacy
Sam Hocevar sam 15 年之前
父節點
當前提交
fa1cc51d97
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      src/font.cpp

+ 2
- 2
src/font.cpp 查看文件

@@ -70,8 +70,8 @@ Font::Font(char const *path)


data->width = data->img->w / 16; data->width = data->img->w / 16;
data->height = data->img->h / 16; data->height = data->img->h / 16;
data->tx = 7.0f / PotUp(data->img->w);
data->ty = 15.0f / PotUp(data->img->h);
data->tx = (float)data->width / PotUp(data->img->w);
data->ty = (float)data->height / PotUp(data->img->h);


drawgroup = DRAWGROUP_BEFORE; drawgroup = DRAWGROUP_BEFORE;
} }


Loading…
取消
儲存