Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix TextMessage resizing issues #86

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/openlrr/game/interface/TextMessages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void __cdecl LegoRR::Text_Initialise(const char* filename, uint32 x, uint32 y, u
{
textGlobs.msgYPos = y;
textGlobs.MsgPanel_Rect1 = *msgRect;
textGlobs.winLowPos = Gods98::Font_GetHeight(textGlobs.textOnlyWindow->font);
textGlobs.winLowPos = (textGlobs.MsgPanel_Rect1.y + textGlobs.MsgPanel_Rect1.height) - Gods98::Font_GetHeight(textGlobs.textOnlyWindow->font);
textGlobs.MsgPanel_Float20 = param_7; // -FC, this seems unused in this code
textGlobs.msgXPos = x;
Text_UpdatePositionAndSize();
Expand Down
1 change: 0 additions & 1 deletion src/openlrr/game/interface/TextMessages.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ void __cdecl Text_Initialise(const char* filename, uint32 x, uint32 y, uint32 un
void __cdecl Text_UpdatePositionAndSize(void);

// <LegoRR.exe @0046ad50>
//#define Text_Clear ((void (__cdecl* )(void))0x0046ad50)
void __cdecl Text_Clear(void);

// <LegoRR.exe @0046ad90>
Expand Down