mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Fix Y position of characters in monospace fonts
The issue was either a typo, or a false assumption that all monospace font characters would be in squares on the sheet. Fixes #1937
This commit is contained in:
parent
5e464d3e93
commit
26518f8660
1 changed files with 1 additions and 1 deletions
|
@ -422,7 +422,7 @@ void FFont::ReadSheetFont(TArray<FolderEntry> &folderdata, int width, int height
|
|||
{
|
||||
for (int x = 0; x < numtex_x; x++)
|
||||
{
|
||||
auto image = new FSheetTexture(sheetBitmaps.Size() - 1, x * width, y * width, width, height);
|
||||
auto image = new FSheetTexture(sheetBitmaps.Size() - 1, x * width, y * height, width, height);
|
||||
FImageTexture *imgtex = new FImageTexture(image);
|
||||
auto gtex = MakeGameTexture(imgtex, nullptr, ETextureType::FontChar);
|
||||
gtex->SetWorldPanning(true);
|
||||
|
|
Loading…
Reference in a new issue