Browse Source

🐛 Correct position of dialog backgrounds

Fixes #1098
pull/1101/head
Anders Jenbo 5 years ago
parent
commit
037ef082b4
  1. 2
      Source/error.cpp
  2. 2
      Source/items.cpp
  3. 2
      Source/minitext.cpp
  4. 2
      Source/stores.cpp

2
Source/error.cpp

@ -126,7 +126,7 @@ void DrawDiabloMsg(CelOutputBuffer out)
assert(gpBuffer);
DrawHalfTransparentRectTo(out, PANEL_LEFT + 104, DIALOG_TOP - 8, 432, 54);
DrawHalfTransparentRectTo(out, PANEL_X + 104, DIALOG_Y - 8, 432, 54);
strcpy(tempstr, MsgStrings[msgflag]);
sx = PANEL_X + 101;

2
Source/items.cpp

@ -3957,7 +3957,7 @@ void PrintItemPower(char plidx, ItemStruct *x)
static void DrawUTextBack(CelOutputBuffer out)
{
CelDrawTo(out, RIGHT_PANEL_X - SPANEL_WIDTH + 24, SCREEN_Y + 327, pSTextBoxCels, 1, 271);
DrawHalfTransparentRectTo(out, RIGHT_PANEL - SPANEL_WIDTH + 27, 28, 265, 297);
DrawHalfTransparentRectTo(out, RIGHT_PANEL_X - SPANEL_WIDTH + 27, SCREEN_Y + 28, 265, 297);
}
void PrintUString(CelOutputBuffer out, int x, int y, BOOL cjustflag, const char *str, int col)

2
Source/minitext.cpp

@ -251,7 +251,7 @@ void InitQTextMsg(int m)
void DrawQTextBack(CelOutputBuffer out)
{
CelDrawTo(out, PANEL_X + 24, SCREEN_Y + 327 + UI_OFFSET_Y, pTextBoxCels, 1, 591);
DrawHalfTransparentRectTo(out, PANEL_LEFT + 27, UI_OFFSET_Y + 28, 585, 297);
DrawHalfTransparentRectTo(out, PANEL_X + 27, SCREEN_Y + UI_OFFSET_Y + 28, 585, 297);
}
void DrawQText(CelOutputBuffer out)

2
Source/stores.cpp

@ -121,7 +121,7 @@ void FreeStoreMem()
static void DrawSTextBack(CelOutputBuffer out)
{
CelDrawTo(out, PANEL_X + 344, 327 + SCREEN_Y + UI_OFFSET_Y, pSTextBoxCels, 1, 271);
DrawHalfTransparentRectTo(out, PANEL_LEFT + 347, UI_OFFSET_Y + 28, 265, 297);
DrawHalfTransparentRectTo(out, PANEL_X + 347, SCREEN_Y + UI_OFFSET_Y + 28, 265, 297);
}
void PrintSString(CelOutputBuffer out, int x, int y, BOOL cjustflag, const char *str, char col, int val)

Loading…
Cancel
Save