mirror of
https://github.com/jmarshall23/CnC_Remastered_Collection.git
synced 2026-08-19 09:34:18 +02:00
Fixed font and render bug from TXTPRNT integration.
This commit is contained in:
@@ -88,8 +88,8 @@ void* __cdecl Set_Font(void const* fontptr)
|
|||||||
if (fontptr) {
|
if (fontptr) {
|
||||||
g_FontPtr = (char*)(fontptr);
|
g_FontPtr = (char*)(fontptr);
|
||||||
g_fontWidthBlockPtr = (char*)(fontptr) + le16toh(header->width_list);
|
g_fontWidthBlockPtr = (char*)(fontptr) + le16toh(header->width_list);
|
||||||
g_FontHeight = le16toh(header->max_height);
|
FontHeight = g_FontHeight = le16toh(header->max_height);
|
||||||
g_FontWidth = le16toh(header->max_width);
|
FontWidth = g_FontWidth = le16toh(header->max_width);
|
||||||
}
|
}
|
||||||
|
|
||||||
return header;
|
return header;
|
||||||
|
|||||||
Reference in New Issue
Block a user