소스 검색

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->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;
}


불러오는 중...
취소
저장